Re: Double-clicking multiple selection in a TableView
Re: Double-clicking multiple selection in a TableView
- Subject: Re: Double-clicking multiple selection in a TableView
- From: Corbin Dunn <email@hidden>
- Date: Wed, 7 Dec 2005 07:39:51 -0800
Sorry, there isn't an easy way to do what you want without
reimplementing a lot of the mouseDown stuff.
I got an email from someone off-list that sparked an idea of how to
implement this. Here is a recap of what I said:
"First, you must subclass tableview and add a boolean ivar for
indicating if selection should not change. The first thing done in
mouseDown: should be to call a delegate method asking the delegate if
the selection should change in the mouseDown for the hit row/column
and a given point (i'd pass in the event). If it returns NO, they set
a boolean indicating to not change the selection, and call [super
mouseDown:]. deselectRow:, selectRow:byExtendingSelection: are
overridden to not call super if the boolean flag is set."
This will probably work, and isn't too hard to do. If this isn't
enough for you to get started with it, I may be able to whip up an
example.
--corbin
_______________________________________________
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