Re: NSOutlineView drag and drop problem
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