NSComboBox in NSTableView behaving strangely
NSComboBox in NSTableView behaving strangely
- Subject: NSComboBox in NSTableView behaving strangely
- From: Devarshi Kulshreshtha <email@hidden>
- Date: Tue, 05 Jul 2011 16:41:43 +0530
Hi All,
I am trying a sample application, which enlists some entities to purchase
and their respective cost.
In data model I created two entities:
1. Daily Transaction (Attribute: cost, Relationship: relatedEntity)
2. Entity (Attribute: name, Relationship: dailyTransactions)
Controls used in XIBs and their bindings:
I. ArrayControllers -
a. DailyTransactions, corresponding to Daily Transaction entity.
b. Entities, corresponding to Entity entity
II. A table -
Col 1: EntityName column containing NSComboBoxCell (value : bind to ->
dailyTransactions, controller key -> arrangedObjects, model key path ->
relatedEntity.name)
Col 2: EntityCost column containing NSTextFieldCell with NSNumberFormatter
(value : bind to -> dailyTransactions, controller key -> arrangedObjects,
model key path -> cost)
ยป NSComboBoxCell in EntityName (content values : bind to -> Entities,
controller key -> arrangedObjects, model key path -> name)
Problem is -
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) -
Original list: http://dl.dropbox.com/u/9999259/unique data.png
Changed list: http://dl.dropbox.com/u/9999259/redundant data.png
Can anyone suggest me how to resolve it?
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