Re: Connecting actions to menu
Re: Connecting actions to menu
- Subject: Re: Connecting actions to menu
- From: John Hörnkvist <email@hidden>
- Date: Tue, 5 Jun 2001 18:12:31 +0200
On Tuesday, June 5, 2001, at 02:15 PM, Ivan Myrvold wrote:
I need to connect the actions I have created in my document-based Cocoa
program. The actions are in the MyWindowController class that I
subclassed in MyDocument.nib. But I can not connect them to the
MainMenu, because the menu is in another nib, MainMenu.nib. And this
nib file don't have a subclass of NSWindowController called
MyWindowController. So how can I do that?
Add the actions to the FirstResponder, and connect to those.
This will also disable the menus when there is no object on the
responder chain that implements the methods.
Regards,
John Hornkvist
--
ToastedMarshmallow, the perfect Cocoa companion
http://www.toastedmarshmallow.com