Re: Main menu item, nibs and file owner
Re: Main menu item, nibs and file owner
- Subject: Re: Main menu item, nibs and file owner
- From: Charilaos Skiadas <email@hidden>
- Date: Thu, 14 Apr 2005 00:21:46 -0500
On Apr 13, 2005, at 7:00 PM, Julien Palmas wrote:
Just a question about buttons and menus in nib files.
I have several nibs in my app. In one of them I have a button that
triggers a method in the corresponding file owner.
In the main menu, I have an item and I would like it to trigger the
same action. Obviously in IB, the menu item has no access to the file
owner from the other nib, and thus no access to the desired method.
What would be the best way to do so ? I see some workarounds but they
don't seem so nice. Maybe I miss something simple ....
Maybe you could add the method you want called as an action in First
Responder, and connect your menu item there? At least that's what I do
in a document-based app.
Haris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden