Re: How to initiate drag&drop for a filename outside of NSView mouseDown
Re: How to initiate drag&drop for a filename outside of NSView mouseDown
- Subject: Re: How to initiate drag&drop for a filename outside of NSView mouseDown
- From: Vojtěch Meluzín <email@hidden>
- Date: Sat, 10 Dec 2011 16:30:45 +0100
>
> I need to initiate a simple drag & drop operation for a single filename,
> but it will not be called within NSView mouseDown, but shortly afterwards
> (internal reasons).
>
>
> What does “shortly afterwards” mean, exactly? Assuming you returned from
> the -mouseDown: method, what are you starting the drag in response to, i.e.
> some other event?
>
Well, for example in timer. Most probably this will actually be called
during the mouseDown, but I cannot guarantee that.
> The mouse button will still be pressed, but the
> mouseDown even will already be finished. How to do this?
>
>
> Do you know that this doesn’t work, i.e. have you tried it yet? I remember
> back in the old days (pre-OS X) you could start a drag as long as the mouse
> was down.
>
Not really, but the documentation states, it MUST be called from mouseDown.
>From my experience with Macs, when there is something, that could cause
problems, it will do that... :) So I don't want to take any risks :).
Vojtech
_______________________________________________
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