Re: Drag and Drop in Same View
Re: Drag and Drop in Same View
- Subject: Re: Drag and Drop in Same View
- From: Raleigh Ledet <email@hidden>
- Date: Sun, 19 Sep 2010 18:19:51 -0700
You need to register as a dragging destination for your dragging type:
-registerForDraggedTypes:
http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Classes/NSView_Class/Reference/NSView.html#//apple_ref/occ/instm/NSView/registerForDraggedTypes:
-raleigh
On Sep 19, 2010, at 5:08 PM, email@hidden wrote:
> I do
>
> dragImage:at:offset:event:pasteboard:source:slideBack:
>
> in a view's mouseDragged method.
>
> The view also implements all the correct methods for dragging as outlined in the example Erik Buck referred to. These dragging methods are never called. So what must be done to Drop in the view that originates the Drag?
>
> It this possible?
>
> -koko
>
>
>
> _______________________________________________
>
> 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
_______________________________________________
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