Re: Modernising dragging problem
Re: Modernising dragging problem
- Subject: Re: Modernising dragging problem
- From: Markus Spoettl <email@hidden>
- Date: Mon, 02 Feb 2015 15:29:21 +0100
On 01/02/15 23:06, Graham Cox wrote:
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.
I agree, it's odd. Maybe something wrong with the image (unlikely if the code
you posted is what you're using and it's working with the old API)? If nothing
else helps: Did you try turning it off and on again?™
Regards
Markus
--
__________________________________________
Markus Spoettl
_______________________________________________
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