Binding CoreData Relationship to an NSTableColumn w/ NSPopupButtonCell
Binding CoreData Relationship to an NSTableColumn w/ NSPopupButtonCell
- Subject: Binding CoreData Relationship to an NSTableColumn w/ NSPopupButtonCell
- From: Bill Coleman <email@hidden>
- Date: Mon, 25 Jun 2007 23:22:09 -0400
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
This works, and I can see the Selection value in each Entry. However,
when I click on the popup button, I don't see the full list of
Selections -- the first values overrides the current table cell, and
the remainder are selectable. So, if I have Selections named A, B, C
and D, A will show up in the table cell (regardless of the value in
the entry), and B through D are in the popup.
If I change the binding for the content or contentValues and check
the Inserts Null Placeholder checkbox, the popup will appear
correctly, with all values A, B, C and D.
Unfortunately, the value in the table cell fails to appear -- instead
it gives me the Null Placeholder ("No Value" by default).
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?
Bill Coleman, AA4LR, PP-ASEL Mail: email@hidden
Quote: "Boot, you transistorized tormentor! Boot!"
-- Archibald Asparagus, VeggieTales
_______________________________________________
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