Re: Accessing an NSArrayController in another NIB file
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