Re: NSTableView - need something like tableView:shouldSelectRow:byExtendingSelection:?
Re: NSTableView - need something like tableView:shouldSelectRow:byExtendingSelection:?
- Subject: Re: NSTableView - need something like tableView:shouldSelectRow:byExtendingSelection:?
- From: Jim Correia <email@hidden>
- Date: Thu, 2 Jun 2005 22:08:55 -0400
On Jun 2, 2005, at 5:50 PM, Corbin Dunn wrote:
Is there any way to avoid this?
okay, the simple answer is that we really need to add support for
this.
Additional bug reports/requests not necessary?
the "work around" answer is to change your delegate method to below.
Some comments: selectRowIndexes is called when the selection is to
really change. shouldSelectRow is lacking "byExtendingSelection",
as we already determined. To work around this, you can determine if
a drag is happening and the right thing should happen.
Thanks Corbin. Your example didn't take care of the cases of
extending the selection with shift arrows or shift/command clicking,
but pointed the way. I modified it and it seems to work. I'll do some
more testing to make sure I didn't miss an edge case, but so far so
good.
Thanks,
Jim
_______________________________________________
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