NSTableView Popup Column issue
NSTableView Popup Column issue
- Subject: NSTableView Popup Column issue
- From: "Jon C. Munson II" <email@hidden>
- Date: Fri, 6 Feb 2009 10:47:38 -0500
- Organization: JTA Enterprises LLC
Namaste!
I'm having an issue with a popup in a tableview.
The issue is that the popup displays a left paren, and when the list is
displayed, shows the item as an array dump (instead of the proper
attribute's value). I also cannot select that value and have it "stick" to
the underlying datasource (which is an intermediary table in a SQLite store,
provided by Core Data).
I know the popup is getting the proper values from its supporting
NSArraryController as I removed the binding for the Selected Object and the
popup works as expected (minus the saving of the selected object) - the
attribute's value is displayed correctly in the list. The problem occurs
when I set the selected object binding.
The Selected Object binding is configured thus:
Bind to: tblPattern_Yarn
Controller Key: arrangedObjects
Model Key path: relYarn
Everything else is the defaults that IB provides when that binding is set
up.
tblPattern_Yarn is the intermediary table between tblPattern and tblYarn.
tblPattern is the "master" table in this case.
relYarn is the relationship in tblPattern_Yarn that links the Pattern to the
Yarn.
The popup is getting values from tblYarn in order to create that
relationship.
The reason for the intermediary table is due to other attributes that
further qualify the relationship between tblPattern and tblYarn, and also
the many-to-many relationship between them.
I have this same set-up for other tableviews on the same screen (with
respect to their individual needs). I have compared them to be sure I
didn't miss something and things appear to be correct.
I checked the relationships in Core Data, and so on, and can't see any
faults from a design perspective, additionally, this works for my other
tableviews.
So, I'm asking for suggestions on either what is wrong or how to track this
down as I've reached the end of my ability to find the error.
Many thanks in advance!
Peace, Love, and Light,
/s/ Jon C. Munson II
_______________________________________________
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