On Mar 2, 2011, at 1:54 PM, Quincey Morris wrote:

> On Mar 2, 2011, at 13:04, Eric Gorr wrote:
> 
>> 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?
>> 
>> 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.
> 
> If you return 'NSTableViewDropAbove' from the 
> 'tableView:validateDrop:proposedRow:proposedDropOperation:' on 10.5, I don't 
> think it will ever highlight a row. Isn't that what you want?
> 

No...don't do that :). tableView:validateDrop:proposedRow:proposedDropOperation 
expects an NSDragOperation result (I had said a BOOL, so I was wrong too!). 
Return NSDragOperationNone if dropOperation==NSTableViewDropOn. It will call 
you again with NSTableViewDropAbove.

corbin


_______________________________________________

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

Reply via email to