Tracking Focus Between NSOutlineViews
Tracking Focus Between NSOutlineViews
- Subject: Tracking Focus Between NSOutlineViews
- From: Luther Baker <email@hidden>
- Date: Sun, 02 Nov 2014 16:50:28 -0600
I have multiple NSOutlineView objects on the screen at one time.
As you select items in secondary outline views, the existing selections in
the other outline views stay selected, and generally turn from a selected
BLUE to an alternate selected GRAY. That is fine and expected.
Now, off to the right side of the window, I have a context DETAIL view that
displays a few editable fields - depending on the the active selection
(just like Xcode does with the contextual right hand view).
The outline view delegates fire when a selection changes ... or should
change -- but they don't say anything if you simply "reselect" an existing
selection (turning it from GRAY to BLUE).
Is there a best practice convention to "follow" the active selection so I
can update the contextual view correctly? I am using view based outline
views -- so I guess I could put mouse handlers on them - or the rows - or
the cells ... but I'd prefer to use the NSOutlineView tooling (if it
exists) to track the active selection.
Just looking for some experienced input here, a rough suggestion in the
right direction here so that I don't reinvent built in functionality. Every
Source / Outline View / Detail view app is doing it these days.
Thanks,
-Luther
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden