Menus in a document based application
Menus in a document based application
- Subject: Menus in a document based application
- From: Colin Cornaby <email@hidden>
- Date: Fri, 5 Aug 2005 11:50:31 -0700
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. Are there any good ways to do this
other than setting up another class as an Application Controller, and
then using notifications or something? That really seems like a long
way around. I've tried making my controller an NSResponder but I
don't know the event chain too well and it seems to have blown up in
my face.
---------------------------
Colin Cornaby - http://gomac.blogspot.com/
Carpe Stellarem - Lead Programmer, ProToys - http://carpestellarem.com
Macintosh Specialist - University of Portland - htttp://up.edu
_______________________________________________
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