Re: revisiting NSTableView 'on drag' row highlighting
Re: revisiting NSTableView 'on drag' row highlighting
- Subject: Re: revisiting NSTableView 'on drag' row highlighting
- From: Corbin Dunn <email@hidden>
- Date: Fri, 19 Oct 2007 15:04:13 -0700
Howdy!
On Oct 17, 2007, at 2:44 PM, Eric Redlinger wrote:
Hi all -
this is an old warhorse issue that has resurfaced: mandatory
rectangular highlights "by default" in NSTableViews when dragging to
rows. There was once (Tiger and before) a handy private function: -
(id)_highlightColorForCell:(NSCell *)cell; that enabled subclassers
to disable this feature.
Overriding privates is never a good idea; usually there is a different
way to do what you want. On Tiger, you can override
highlightSelectionInClipRect: in NSTableView, and make sure the cells
you use don't draw backgrounds.
I've heard that this function is no longer available in the upcoming
release of OSX - once and for all, what is the official, future-
proof way to handle this situation? I'd love to be able to handle
my own row highlights.
Please ask this question again when Leopard is out, and then I can
provide an answer.
thanks,
Corbin
_______________________________________________
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