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 (Cocoa-dev@lists.apple.com) > > 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: > http://lists.apple.com/mailman/options/cocoa-dev/corbind%40apple.com > > This email sent to corb...@apple.com _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com