Re: NSComboBox in NSTableView behaving strangely
Re: NSComboBox in NSTableView behaving strangely
- Subject: Re: NSComboBox in NSTableView behaving strangely
- From: Devarshi Kulshreshtha <email@hidden>
- Date: Wed, 06 Jul 2011 17:24:57 +0530
same problem exists in NSPopUpButtonCell, it is changing the value in list
which appears on clicking it, as shown -
Original list: http://dl.dropbox.com/u/9999259/unique data.png
Changed list: http://dl.dropbox.com/u/9999259/redundant data.png
Bindings used in case of NSPopUpButtonCell are:
TableColumn with NSPopUpButtonCell -
Value Selection : Selected Value bind to -> Transactions, Controller
Key -> arrangedObjects,
Model Key Path -> relatedEntity.name
NSPopUpButtonCell
Value Selection : Content Values Bind to: Entities, Controller Key ->
arrangedObjects,
Model Key Path -> name
Note: code can be found here -
http://dl.dropbox.com/u/9999259/TableWithComboBoxExperi.zip
On Wed, Jul 6, 2011 at 11:44 AM, Quincey Morris <email@hidden
> wrote:
> On Jul 5, 2011, at 04:11, Devarshi Kulshreshtha wrote:
>
> > When I am selecting a value in dropdown list of combobox cell, it is
> > changing the value of previously selected value to newly selected value,
> as
> > shown in below figure(s) -
>
> A combo box is a kind of text field, not a kind of menu, so yes it's going
> to edit the property that it's bound to.
>
> Use a NSPopUpButton instead.
>
>
>
--
Thanks,
Devarshi
_______________________________________________
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