Re: Open Recent menu
Re: Open Recent menu
- Subject: Re: Open Recent menu
- From: "Louis C. Sacha" <email@hidden>
- Date: Mon, 19 Jul 2004 21:27:53 -0700
Hello...
There won't be an unrecognized selector exception thrown, because the
NSApplication instance will check that the delegate implements the
corresponding method (if it has a delegate) and will only attempt to
call the method if it exists.
You might want to check the usual suspects:
1) You have instantiated your delegate object in MainMenu.nib (or its
equivalent), and the connection has been made from the shared
application instance ("File Owner" in the main nib) to that object
for the application's delegate outlet.
2) Check to make sure that you haven't made any typos in the name of
the method, and that the implementation has the form
- (BOOL)application:(NSApplication *)theApplication
openFile:(NSString *)filename
{
/* ... */
}
Hope that helps,
Louis
Hello...
When you don't use an NSDocument based application, the object that
you use as the delegate of the shared NSApplication instance must
respond to the application:openFile: method in order for the "Open
Recent" menu to work correctly.
Hope that helps,
Louis
...
I have it implemented, and I don't recall seeing any unrecognized
selector errors. I've set a breakpoint at that method, and it
doesn't call it either.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.