Re: Noob: MainMenu.nib and MyDocument.nib targeting problems
Re: Noob: MainMenu.nib and MyDocument.nib targeting problems
- Subject: Re: Noob: MainMenu.nib and MyDocument.nib targeting problems
- From: Sherm Pendley <email@hidden>
- Date: Mon, 23 Jul 2007 04:41:03 -0400
On Jul 23, 2007, at 4:00 AM, Alain Schartz wrote:
I suppose I could choose not to use an ApplicationController class
at all and make the menu target the MyDocument class directly
That sounds like the way to go.
, but this raises a similar question; how do I access the current
MyDocument object from inside MainMenu.nib ?
You don't connect it directly. You target the event to the "first
responder", and let the responder chain route it to the correct
document instance.
See <file:///Developer/ADC Reference Library/documentation/Cocoa/
Conceptual/BasicEventHandling/index.html> for details.
sherm--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden