• 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: Accessing an NSArrayController in another NIB file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Accessing an NSArrayController in another NIB file


  • Subject: Re: Accessing an NSArrayController in another NIB file
  • From: mmalc crawford <email@hidden>
  • Date: Fri, 18 May 2007 17:47:00 -0700


On May 18, 2007, at 3:55 PM, Claudio Mezzasalma wrote:

Hello. As topic says, I'd need some help in binding to an NSArrayController located in another NIB file. Exactly, here's the scenario: I have a CoreData application, and I would need to bind the NSArrayController's canRead key (located in MyDocument.nib) to a main menu item (which is, obviously, located in MainMenu.nib); at least, I assume that bindings are the mechanism i need to do this. Am I wrong, or there's something I could actually do to this stuff?

You almost certainly don't want to bind to "a main menu item in the MainMenu.nib". You want to bind to whatever model value that affects.
If it's a preference, use NSUserDefaultsController. If it's something else, find a keypath to it (NSApp's delegate is typically useful here...).


mmalc

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: 
 >Accessing an NSArrayController in another NIB file (From: Claudio Mezzasalma <email@hidden>)

  • Prev by Date: Re: Use of "min" and "max" functions
  • Next by Date: Dock icon removal. and NSStatusBar
  • Previous by thread: Accessing an NSArrayController in another NIB file
  • Next by thread: Re: Accessing an NSArrayController in another NIB file
  • Index(es):
    • Date
    • Thread