Re: Processing Unselect in NSOutlineView
Re: Processing Unselect in NSOutlineView
- Subject: Re: Processing Unselect in NSOutlineView
- From: David Emme <email@hidden>
- Date: Fri, 10 Mar 2006 11:07:47 -0700
--- On 3/10/06 4:36 PM (+0100), Stephane Sudre wrote:
>On 10 mars 06, at 16:04, David Emme wrote:
>
>> I have an NSOutline view which conceptually contains "directories"
>> and "files" in those directories, much like Finder's list view.
>>
>> When a user selects/unselects a directory row, I would like to
>> select/unselect all children of that row.
>>
>> I can do the selection operation in delegate method
>> outlineView:shouldSelectItem:. But how can I be informed when the
>> user UNselects such a row? I guess I could compare the values of
>> selectedRowIndexes before and after, but that seems like the hard
>> way.
>>
>> What's the best way to be informed of the user unselecting a row?
>
>delegate method:
>
>outlineView:selectionDidChange:
Yes, but that doesn't seem to tell me *which* row(s) were unselected. In
that case I would have to do the before-after comparison of all
*selected* rows as I indicated above, to determine which (if any) rows
have become unselected. Or am I missing something?
I was hoping there was a better way...
-Dave
--
Insanity is doing the same thing again and again and expecting
different results.
- Albert Einstein
_______________________________________________
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