• 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
NSComboBoxCell on a NSTableColumn getting and setting its value from/to the model through bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSComboBoxCell on a NSTableColumn getting and setting its value from/to the model through bindings


  • Subject: NSComboBoxCell on a NSTableColumn getting and setting its value from/to the model through bindings
  • From: Bert Torfs <email@hidden>
  • Date: Thu, 3 Feb 2005 20:58:07 +0100

Hi all,

I have a NSComboBoxCell set (programatically) on a tablecolum that gets and sycnhronizes its value with my model through bindings. Auto-completes is on, and works marvelously. Opening the combobox - either by clicking or down-arrow-pushing is OK as well. When I type, the combobox scrolls to the right row etc... . Tabbing out of the cell updates the model.
BUT (would I post if there was no but?) when I select a value from the combobox (clicking on an item on the list or pressing <enter> with an item selected), the new value is not set in the model object (the setter is not called). This causes the change to be undone as soon as I tab out of the cell. When typing and using autocompletes (combobox closed), the setter of my model gets called as expected.
I use a custom NSComboBoxCell on a custom NSTableView. When I select an item from the combobox, a custom setObjectValue is executed on the cell. That method does nothing (in that case) but calling the super implementation.
Anyone any idea where I should start looking? Or how I can - from inside the setObjectValue method of my NSComboBoxCell descendant - force the controller to update the view?


Thanks a lot.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Detecting ctrl-click (context menu) in NSBrowser
  • Next by Date: Re: difference between frameworks and plugins
  • Previous by thread: Re: Detecting ctrl-click (context menu) in NSBrowser
  • Next by thread: NSView and NSMenuItem not updating displays
  • Index(es):
    • Date
    • Thread