Re: Avoiding NSTableView NSOutlineView menu row highlight
Re: Avoiding NSTableView NSOutlineView menu row highlight
- Subject: Re: Avoiding NSTableView NSOutlineView menu row highlight
- From: Kyle Sluder <email@hidden>
- Date: Fri, 18 Feb 2011 10:36:00 -0800
On Fri, Feb 18, 2011 at 10:24 AM, Markus Spoettl
<email@hidden> wrote:
> I have multiple trees lined up side-by-side, each tree shows the same hierarchy in a different version (so the items in the tree are different, not the hierarchy itself) - think of a side-by-side folder comparison with any number of trees. The trees are all sync'd, when you select an item in one tree, the item gets selected in all of them. It creates the perfect illusion of one big view with features that I could never achieve in one tree.
>
> The only thing that doesn't work is the menu highlight because there's no control over it - which I personally find rather surprising given to customizability of the thing in all other areas.
So you've got multiple views laid up side-by-side to give the illusion
of one big view?
Instead of changing the selection, could you implement Corbin's
suggestion of overriding -menuForEvent: to not call super, but instead
tell all the sibling views to draw pieces of the "this row was
right-clicked" style? Then you keep the system standard behavior and
maintain your illusion of one big view.
--Kyle Sluder
_______________________________________________
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