Re: Connecting actions to menu
Re: Connecting actions to menu
- Subject: Re: Connecting actions to menu
- From: Henri Lamiraux <email@hidden>
- Date: Tue, 5 Jun 2001 10:18:38 -0700
In your main nib add your window controller actions to the
firstResponder and connect your menu itemS to the firstResponder. At
runtime when one of your document window is key its window controller
will be in the responder chain (because the window controller is the
delegate of the window). Everything will work just fine. This is one of
the reason for the existence of the firstResonder.
On Tuesday, June 5, 2001, at 05:15 AM, 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?