Re: NSTableView, Multiple Selections, and PopUpButtons
Re: NSTableView, Multiple Selections, and PopUpButtons
- Subject: Re: NSTableView, Multiple Selections, and PopUpButtons
- From: Joe Howard <email@hidden>
- Date: Wed, 30 Jan 2002 02:48:17 -0800
Well that's pretty much the idea, but it doesn't seem that I can hook
into it quite like that. shouldSelectRow gets called before
trackMouse:inRect: and mouseEntered doesn't seem to work at all. Other
than that, I don't see how to tell if the cell was clicked before
shouldSelectRow. If you know, people help.
Joe
On Wednesday, January 30, 2002, at 02:00 AM, email@hidden wrote:
have you tried returning NO from shouldSelectRow: in your delegate?
you could check to see if the click is in the popupbuttoncell first...
On Wednesday, January 30, 2002, at 01:33 AM, Joe Howard wrote:
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