• 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: NSOutlineView drag and drop problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOutlineView drag and drop problem


  • Subject: Re: NSOutlineView drag and drop problem
  • From: Tony Romano <email@hidden>
  • Date: Thu, 10 Jun 2010 13:27:28 -0700

It does.  Making a call to draggingSourceOperationMask in your acceptDrop method  will give you the operation that is active.  No need to cache it.

-Tony


On Jun 10, 2010, at 11:12 AM, Jens Alfke wrote:

>
> On Jun 9, 2010, at 11:12 PM, Graham Cox wrote:
>
>> In –outlineView:acceptDrop:item:childIndex: I can work out much the same set of conditions as above and mostly do the right thing, but since a move or a copy is equally likely, I need a way to determine what the last drag operation returned during validation actually was. There doesn't seem to be a way to do this by requesting it from any of the parameters passed to that method.
>
> Well, since acceptDrop takes the same parameters as validateDrop, it seems you should be able to work out the same operation that validateDrop arrived at. I often end up writing a subroutine that takes the dragging info and items and works out the operation and other useful stuff, and then have both of those methods call it.
>
> —Jens
>
> _______________________________________________
>
> 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
>
It_______________________________________________

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: NSOutlineView drag and drop problem
      • From: Graham Cox <email@hidden>
References: 
 >NSOutlineView drag and drop problem (From: Graham Cox <email@hidden>)
 >Re: NSOutlineView drag and drop problem (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: FSCopyObjectAsync hogging the thread?
  • Next by Date: Design Option: Exception handling vs Code Testing....
  • Previous by thread: Re: NSOutlineView drag and drop problem
  • Next by thread: Re: NSOutlineView drag and drop problem
  • Index(es):
    • Date
    • Thread