Re: NSOutlineView and outlineViewSelectionIsChanging
Re: NSOutlineView and outlineViewSelectionIsChanging
- Subject: Re: NSOutlineView and outlineViewSelectionIsChanging
- From: Corbin Dunn <email@hidden>
- Date: Thu, 21 Jul 2005 09:21:41 -0700
On Jul 20, 2005, at 6:07 PM, Michael McCracken wrote:
The notification and corresponding delegate method:
- (void)outlineViewSelectionIsChanging:(NSNotification *)
aNotification;
is according to the docs,
"Posted as the NSOutlineView's selection changes (while the mouse
button is still down)"
And this is strictly true, although I was surprised to find that it is
not sent when the selection is changed by using the arrow key. Is this
intended?
Currently, this is the intent. However, this is the second time I've
heard about this being a problem, so it might be feasible that we
change the behavior to always sent the notification and then update
the docs.
You probably can override:
- (void)selectRowIndexes:(NSIndexSet *)indexes byExtendingSelection:
(BOOL)extend;
and do your notification work before calling super (which actually
changes the selection).
--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