Re: MyDocument.xib v MainMenu.xib
Re: MyDocument.xib v MainMenu.xib
- Subject: Re: MyDocument.xib v MainMenu.xib
- From: Uli Kusterer <email@hidden>
- Date: Wed, 30 Dec 2009 16:58:02 +0100
On 30.12.2009, at 06:23, David Blanton wrote:
> Putting the inspectors in MainMenu.xib will let me make just 'one set' for all documents but I am unsure as to how to get a reference from the inspector to the document given different xib's.
Menus work the same way: There's one menu in MainMenu.xib, and it triggers actions on your document. How does it do that? By connecting to the First Responder. You can do the same. You may have to, additionally, subscribe to some notifications to notice when the first responder changes, so your inspector knows when it needs to re-request information from the first responder.
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.masters-of-the-void.com
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden