• 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
NSComboBoxCells in custom NSCell (in NSTableView)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSComboBoxCells in custom NSCell (in NSTableView)


  • Subject: NSComboBoxCells in custom NSCell (in NSTableView)
  • From: Michael Becker <email@hidden>
  • Date: Wed, 26 Nov 2003 03:02:02 +0100

Hey!

I have my own subclass of NSCell, which draws some buttons. Now I wanted to add an NSComboBoxCell to it, but somehow very strange behavior showed up. The comboboxes show up nicely in the cell. But, somehow, when I have three items in my tableview and I click the FIRST (row 1) combobox's downward-arrow, the THIRD (row 3) combobox's dropdown-menu appears. And when I select an item of that dropdown menu, combobox number 1 again takes this value. But when I click on the second cell AFTER that, this cell's combobox directly takes the value of the combobox in cell 1, etc.

Very strange behavior. In my cell's -trackMouse, I find out where the user clicked, and if he clicked on the combobox, I invoke the combobox's -trackMouse method.

Am I missing something? Do I need do set something, maybe so that each combobox is clearly identifiable? Or should I just keep my hands away from NSComboBoxCells in NSTableViews?

Thanks!

Michael
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: force quit
  • Next by Date: tabbing between controls
  • Previous by thread: Re: Need a dictionary of words in English
  • Next by thread: tabbing between controls
  • Index(es):
    • Date
    • Thread