Re: Customizing the drop highlight on a NSTableView
Re: Customizing the drop highlight on a NSTableView
- Subject: Re: Customizing the drop highlight on a NSTableView
- From: Corbin Dunn <email@hidden>
- Date: Wed, 02 Mar 2011 13:50:58 -0800
On Mar 2, 2011, at 1:04 PM, Eric Gorr wrote:
> I found this old thread:
>
> http://lists.apple.com/archives/cocoa-dev/2005/Jun/msg01922.html
>
> which talks about overriding the private method:
>
> _drawDropHighlightOnRow:
>
> Now, I tried this out, and while the method does get called, it no longer appears to control the drop highlight of a row.
>
> I am using the 10.5 SDK, so don't have access to -setDraggingDestinationFeedbackStyle:
>
> What are my options for customizing the drop highlighting for a NSTableView?
There are no customization options for 10.5.
>
> The highlighting I want is for it to draw the drop indicator between rows and to never highlight an entire row. If this is possible under the 10.5 SDK, I would be interested in being pointed to it.
Oh yeah, that is easy! In the delegate method for -acceptDrop just return "NO" when it asks for a drop "on".
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