• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Avoiding NSTableView NSOutlineView menu row highlight
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Avoiding NSTableView NSOutlineView menu row highlight
      • From: Markus Spoettl <email@hidden>
References: 
 >Avoiding NSTableView NSOutlineView menu row highlight (From: Markus Spoettl <email@hidden>)

  • Prev by Date: Re: Programmatically created NSView subclasses, and mouse events
  • Next by Date: Re: Avoiding NSTableView NSOutlineView menu row highlight
  • Previous by thread: Avoiding NSTableView NSOutlineView menu row highlight
  • Next by thread: Re: Avoiding NSTableView NSOutlineView menu row highlight
  • Index(es):
    • Date
    • Thread