Re: NIB / menu question
Re: NIB / menu question
- Subject: Re: NIB / menu question
- From: Donald Brown <email@hidden>
- Date: Sun, 27 Jan 2002 19:36:00 -0600
If the classes are responders (documents, windows, etc.), you can add the
actions to the FirstResponder in mainmenu.nib (go to classes tab, look for
FirstResponder as a subclass of NSObject, show info, add actions) and
connect to them.
If the classes aren't, you have to create a NSObject subclass in
mainmenu.nib, instantiate it, and get the document to talk to it.
Donald
on 1/27/02 7:14 PM, Peter Schols at email@hidden wrote:
>
Hi,
>
>
I have a simple app with two NIB files: Mainmenu.nib & mydocument.nib.
>
The main menu is in the mainmenu.nib and I want to connect some menu
>
items with actions available in a class that's in the other nib file.
>
However, it seems impossible to connect the menu items to actions in an
>
instance that's not in the mainmenu.nib.
>
>
What should I do? Combining both nib files? Or is there a better way?
>
>
Thanks!
>
>
Peter
--
Donald Brown
email@hidden
http://www.eamontales.com
We have met the enemy and he is us - Pogo