• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSComboBox in NSTableView behaving strangely
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSComboBox in NSTableView behaving strangely
      • From: Quincey Morris <email@hidden>
  • Prev by Date: QTMovie not playing in new window
  • Next by Date: Delay in reading cookie using NSHttpCookieStorage
  • Previous by thread: Re: QTMovie not playing in new window
  • Next by thread: Re: NSComboBox in NSTableView behaving strangely
  • Index(es):
    • Date
    • Thread