• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: MyDocument.xib v MainMenu.xib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >MyDocument.xib v MainMenu.xib (From: David Blanton <email@hidden>)

  • Prev by Date: Setting the Line Height/ Line Spacing in an NSTextView.
  • Next by Date: Re: Document-based application issue
  • Previous by thread: Re: MyDocument.xib v MainMenu.xib
  • Next by thread: Resizing Issues with NSCollectionView
  • Index(es):
    • Date
    • Thread