Re: Modernising dragging problem
Re: Modernising dragging problem
- Subject: Re: Modernising dragging problem
- From: Kyle Sluder <email@hidden>
- Date: Fri, 30 Jan 2015 17:25:48 -0600
On Fri, Jan 30, 2015, at 05:15 PM, Graham Cox wrote:
> In order to use NSDraggingItem, I first need to make sure the stuff I'm
> dragging supports NSPasteboardWriting. I've done that, it seems
> straightforward enough. Then I build a NSDraggingItem and use the same
> image I previously used, so there's nothing new there. Finally I use
> [NSView beginDraggingSessionWithItems:event:source:].
>
> Nothing shows up. No image, nothing drags. I can break on the
> NSPasteboardWriting methods and see that they are being called, so it
> seems to be trying to write the correct things to the pasteboard. Nothing
> is logged. After this, use of the legacy dragging methods elsewhere in
> the app also fail to work - it's like whatever I did in this drag session
> messes up the dragging system altogether. Obviously I'm doing something
> wrong, but I've been over the docs and am just not getting it.
Does the source implement the required method -[<NSDraggingSource>
draggingSession:sourceOperationMaskForDraggingContext:]? This is the new
replacement for -draggingSourceOperationMaskForLocal:.
--Kyle Sluder
_______________________________________________
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