I think this will be an easy problem, but in my quest for even cooler programs, I have decided to implement a NSSavePanel. Here is my code:
-(void)openSavePanel
{
NSSavePanel *save = [NSSavePanel savePanel];
[save setRequiredFileType:@"inv"];
[save beginSheetForDirectory:@""
file:@""
modalForWindow:window
modalDelegate:self
didEndSelector:@selector(savePanelDidEnd:returnCod e:contextInfo:)
contextInfo:NULL];
}
- (void) savePanelDidEnd:(NSSavePanel *)savePanel returnCode:(int)returnCode contextInfo:(void *)contextInfo
{
NSLog(@"code = %d", returnCode);
[savePanel orderOut:nil];
}
I get the following errors:
-[NSMutableRLEArray savePanelDidEnd:returnCode:contextInfo:]: selector not recognized
Exception raised during posting of notification. Ignored. exception: *** -[NSMutableRLEArray savePanelDidEnd:returnCode:contextInfo:]: selector not recognized
The Save Sheet does show and these errors come up when I hit Save... Any ideas???