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 14:06:25 -0400
On Jun 2, 2005, at 1:53 PM, Corbin Dunn wrote:
tableView:shouldSelectRow:byExtendingSelection:
We have a feature request to add this type of delegate method.
That's good to hear.
Is there a way to determine from my delegate method whether or not
we are extending the current selection? Some other way to get this
functionality without the daunting task of subclassing and
rewriting the mouseDown: method?
You should be able to subclass nstableview and override:
- (void)selectRowIndexes:(NSIndexSet *)indexes
byExtendingSelection:(BOOL)extend;
Let me know if that works for you.
That did not work. I implemented
- (void)selectColumnIndexes:(NSIndexSet *)indexes
byExtendingSelection:(BOOL)extend
{
NSLog(@"%s", __PRETTY_FUNCTION__);
[super selectColumnIndexes: indexes byExtendingSelection: extend];
}
in my subclass, and it isn't called during mouseDown handling. I see
a private method I can override to get what I want done, but with
that comes all the perils of hacking with private methods.
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