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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to