Re: actions across nibs
Re: actions across nibs
- Subject: Re: actions across nibs
- From: Eric Friedman <email@hidden>
- Date: Tue, 7 Oct 2003 21:00:11 -0700
nil-targeted actions. In MainMenu.nib, make a connection from your
menu item to the nib's FirstResponder. (You will see a number of items
that are already set up like this). Then read about the responder
chain to see how it is determined which object's implementation of that
method gets invoked (hint, one such place is the key document window,
which is just what you described below). As an example, one of the
existing menu/action pairs is print: -- you could simply implement this
in your NSDocument subclass and it would work as you'd expect.
On Tuesday, October 7, 2003, at 08:42 PM, Chaz McGarvey wrote:
Hello:
I'm sure this is dead easy, but it's not very obvious to me. I have a
document-based app and I want certain menu items to (MainMenu.nib) to
send actions to the front document (and likewise be disabled when
there is no document to send actions to). So, what am I missing?
Thanks,
Chaz McGarvey
_______________________________________________
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.
_______________________________________________
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.