• 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: Customizing the drop highlight on a NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Customizing the drop highlight on a NSTableView


  • Subject: Re: Customizing the drop highlight on a NSTableView
  • From: John Terranova <email@hidden>
  • Date: Wed, 02 Mar 2011 14:39:56 -0800

On Mar 2, 2011, at 1:58 PM, Corbin Dunn wrote:

>
> 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.

Really? I never realized that. I always used setDropItem:dropChildIndex: (in an outline view, for example) to redirect the drop when I want only NSTableViewDropOn, or never want NSTableViewDropOn.

Can the docs be a little more clear on this point, or did I just miss it?

	john

_______________________________________________

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: Customizing the drop highlight on a NSTableView
      • From: Corbin Dunn <email@hidden>
References: 
 >Customizing the drop highlight on a NSTableView (From: Eric Gorr <email@hidden>)
 >Re: Customizing the drop highlight on a NSTableView (From: Quincey Morris <email@hidden>)
 >Re: Customizing the drop highlight on a NSTableView (From: Corbin Dunn <email@hidden>)

  • Prev by Date: Re: Editing a list of NSMutableStrings
  • Next by Date: Re: Editing a list of NSMutableStrings
  • Previous by thread: Re: Customizing the drop highlight on a NSTableView
  • Next by thread: Re: Customizing the drop highlight on a NSTableView
  • Index(es):
    • Date
    • Thread