Re: NSTableView Popup Column issue
Re: NSTableView Popup Column issue
- Subject: Re: NSTableView Popup Column issue
- From: Keary Suska <email@hidden>
- Date: Fri, 6 Feb 2009 09:13:21 -0700
On Feb 6, 2009, at 8:47 AM, Jon C. Munson II wrote:
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).
This generally means that you are binding a single value
representation to an array (multiple).
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
And here you do it. Selected Object needs to be bound to something
that returns a single value. arrangedObjects returns an array. Perhaps
you want "selection"?
HTH,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
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