Re: Menus in a document based application
Re: Menus in a document based application
- Subject: Re: Menus in a document based application
- From: Jim Correia <email@hidden>
- Date: Fri, 5 Aug 2005 15:06:38 -0400
On Aug 5, 2005, at 2:50 PM, Colin Cornaby wrote:
I'm trying to use menus in my document based application but am
having a problem. A controller in my NSDoc contains the selector
that the menu needs to call. I found on the list that the best way
to go about linking a menu to a document was to add the selector to
the first responder in the application nib, and then set the
selector for the menu to that. However, the problem is an
NSDocument is not going to be on the responder chain.
Have you actually tried it?
<http://developer.apple.com/documentation/Cocoa/Reference/
ApplicationKit/ObjC_classic/Classes/NSDocument.html>
"When going up the responder chain, the Application Kit queries a
window’s NSDocument, if it exists, just after it queries the window
delegate, if that is different from the NSDocument."
Jim _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden