Re: NIB / menu question
Re: NIB / menu question
- Subject: Re: NIB / menu question
- From: Ondra Cada <email@hidden>
- Date: Mon, 28 Jan 2002 03:12:25 +0100
Peter,
>
>>>>> Peter Schols (PS) wrote at Mon, 28 Jan 2002 02:14:49 +0100:
PS> I have a simple app with two NIB files: Mainmenu.nib & mydocument.nib.
PS> The main menu is in the mainmenu.nib and I want to connect some menu
PS> items with actions available in a class that's in the other nib file.
There are no classes in NIBs, just instances!!!!
PS> However, it seems impossible to connect the menu items to actions in an
PS> instance that's not in the mainmenu.nib.
Right. There was a trick to do so in MiscKit ages ago. But you don't need that...
PS> What should I do? Combining both nib files? Or is there a better way?
...since there's the First Responder to you: connect the menu item action to
the First Responder. That way it would be automatically sent to the active
view of the key window, or its delegate (=window or document controller), or
application delegate, whoever understands the message.
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
2K Development: email@hidden
http://www.2kdevelopment.cz
private email@hidden
http://www.ocs.cz/oc