• 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: Modernising dragging problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Modernising dragging problem
      • From: Graham Cox <email@hidden>
References: 
 >Modernising dragging problem (From: Graham Cox <email@hidden>)

  • Prev by Date: Modernising dragging problem
  • Next by Date: Re: Modernising dragging problem
  • Previous by thread: Modernising dragging problem
  • Next by thread: Re: Modernising dragging problem
  • Index(es):
    • Date
    • Thread