Re: Avoiding NSTableView NSOutlineView menu row highlight
Re: Avoiding NSTableView NSOutlineView menu row highlight
- Subject: Re: Avoiding NSTableView NSOutlineView menu row highlight
- From: Corbin Dunn <email@hidden>
- Date: Fri, 18 Feb 2011 09:00:23 -0800
On Feb 18, 2011, at 7:43 AM, Markus Spoettl wrote:
> Hello,
>
> is there a way to avoid (or customize) the special row highlighting NSTableView and NSOutlineView does when the context menu is shown?
You can't customize it. Please log bugs requesting that ability.
NSTableView marks the rows to highlight in:
- (NSMenu *)menuForEvent:(NSEvent *)theEvent
If you override that, and don't call super, the it will suppress the highlighting.
>
> In my case that is confusing and unwanted since I'm ensuring the (right-) clicked row is selected
FWIW, that's non-standard UI. The HI specification is to not change the selected row on a right click. Note that many apps get this wrong. Finder in SnowLeopard has it correct.
corbin
> when the menu is displayed and I'd just like to show the "normal" row highlight background -- which I customize by overriding -highlightSelectionInClipRect: in my own NSOutlineView subclass.
>
>
> Thanks!
> Markus
> --
> __________________________________________
> Markus Spoettl
>
> _______________________________________________
>
> 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
_______________________________________________
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