• 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: Graham Cox <email@hidden>
  • Date: Mon, 02 Feb 2015 09:06:58 +1100

> On 1 Feb 2015, at 5:23 am, Markus Spoettl <email@hidden> wrote:
>
> I did the same conversion a while back and have had no such issue. I found it completely straight forward and surprisingly painless. Are you sure you're implementing all the required protocols?
>
> + In the view starting dragging NSDraggingDestination (if it wants to receive something, too), also are you calling -registeringForDraggedTypes: in that view
> + In you object you're calling "obj" NSPasteboardWriting
> + In the object you're calling "source" NSDraggingSource
>
> In my implementation "obj" and "source" are the same object, but that should not matter. Looking at my code, I think that's all the needs to be done.
>


Hi Markus,

Yes, I'm conforming to all the protocols, and I'm registering for the dragged types - actually that pertains to receiving only, but I can drag and receive the same types. Temporarily turning off the registering for dragged types (so that the same view won't immediately start responding to the drag it started) doesn't fix things, so that isn't a cause of what I'm seeing.

It's most odd - nothing is logged that might give a clue. The legacy code still works perfectly.

--Graham



_______________________________________________

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: Markus Spoettl <email@hidden>
  • Prev by Date: Re: Allow tap events outside a custom UIPresentationController on iPad(iOS 8)
  • Next by Date: Extrange problem with screensaver in 2 monitors and key stroke
  • Previous by thread: Re: Allow tap events outside a custom UIPresentationController on iPad(iOS 8)
  • Next by thread: Re: Modernising dragging problem
  • Index(es):
    • Date
    • Thread