Thanks for the help. I need to save my RTF's with graphics. The following works fine for text. What do I need to do to make this work with embedded graphics?
thanks again. paul.
NSSavePanel *panel = [NSSavePanel savePanel];
[panel setAllowedFileTypes:[NSArray arrayWithObject:@"rtf"]];
NSString *outputName = @"Output File";
[panel setCanCreateDirectories:YES];
[panel setCanSelectHiddenExtension:YES];
[panel setNameFieldStringValue:outputName];
[panel beginSheetModalForWindow:theSwatch completionHandler:^(NSInteger result) {
if (result == NSFileHandlingPanelOKButton){
[[textView RTFFromRange:NSMakeRange(0, [[textView string] length])] writeToURL: [panel URL] atomically:YES];
}