Re: Binding CoreData Relationship to an NSTableColumn w/ NSPopupButtonCell
Re: Binding CoreData Relationship to an NSTableColumn w/ NSPopupButtonCell
- Subject: Re: Binding CoreData Relationship to an NSTableColumn w/ NSPopupButtonCell
- From: mmalc Crawford <email@hidden>
- Date: Mon, 25 Jun 2007 21:32:20 -0700
On Jun 25, 2007, at 8:22 PM, Bill Coleman wrote:
OK, I have a CoreData model with a handful of entities. The first
entity is Entry, which has a relationship to a Selection. I'm
displaying the Entries in an NSTable bound to an NSArrayController
(Entries). I've set up the relationships according to the
documentation here:http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaBindings/Tasks/onerelation.html
[...]
So, how do I get both -- I want my Entry value to show up in the
table, and all the Selection values to show up in the Popup -- ? Why
does the Insert Null Placeholder modify the display of the table?
You've almost certainly set up a binding incorrectly.
Why not just create an "automatic" UI using Interface Builder (drag
the Entry entity into a window)? It should set up the Selection popup
and associated array controller for you...
(See also <http://developer.apple.com/documentation/Cocoa/Conceptual/NSPersistentDocumentTutorial/index.html
> and <http://developer.apple.com/samplecode/DepartmentAndEmployees/>.)
mmalc
_______________________________________________
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