NSTableView, Multiple Selections, and PopUpButtons
NSTableView, Multiple Selections, and PopUpButtons
- Subject: NSTableView, Multiple Selections, and PopUpButtons
- From: Joe Howard <email@hidden>
- Date: Wed, 30 Jan 2002 01:33:04 -0800
So in my app I've got an NSTableView with one of the columns displaying
NSPopUpButtonCells. I have multiple selection allowed and I want the
user to be able to select multiple rows in the table, change one of the
popup buttons, and all of the selected row's popup buttons (and the
underlying values) change to the selected value. The problem that I am
having is that when you click one of the popup buttons, all of the
selected rows deselect, and the row with the clicked button is selected.
I'm not sure of the approach in which I would solve this problem. Would
this involve overriding NSCell's trackMouse:inRect:ofView:untilMouseUp:
or using NSTableView's delegate methods? I'm really not seeing a good
approach to solve this and would really appreciate some pointers.
Joe Howard