NSTableview Datasource and NSPopupbuttonCell
NSTableview Datasource and NSPopupbuttonCell
- Subject: NSTableview Datasource and NSPopupbuttonCell
- From: Steven Hamilton <email@hidden>
- Date: Thu, 24 Jul 2008 21:50:31 +1000
Hi Folks,
I have a NSTableview with a datasource consisting of an NSArray of
dictionaries. One column in my table has an NSPopupbuttonCell. The
content and contentValues are bound to a Core Data "Account" object. I
use a "name" property as my contentValue.
I'm having trouble changing the popup button. I know in my datasource
I get an index of the selected object and in my setObjectValue
datasource method I set the key in the dictionary with this new
NSNumber inValue. However, in operation when I change the popupbutton
it very quickly changes back to the first object in the list (index 0).
Clearly I'm missing something or have set something wrongly in IB.
_______________________________________________
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