No you don't understand me, it will be called with mouse down, it's just
there is some internal cross-platform event management system and I think
it could be called outside mouseDown.

Vojtech

Dne 11. prosince 2011 1:44 Kyle Sluder <[email protected]> napsal(a):

> 2011/12/10 Vojtěch Meluzín <[email protected]>:
> >>
> >> 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.
>
> This really doesn't make sense. What are you going to drag if the
> mouse isn't down?
>
> It sounds like you might want to run the runloop inside your
> -mouseDown: implementation rather than use the
> -mouseDown:/mouseMoved:/mouseUp: approach, but once you've returned
> from -mouseDown: you've lost your ability to track the mouse.
> Therefore it doesn't make sense to start a drag.
>
> --Kyle Sluder
>



-- 
Cheers!
Vojtech
www.meldaproduction.com
_______________________________________________

Cocoa-dev mailing list ([email protected])

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

This email sent to [email protected]

Reply via email to