Re: Transition from [NSEvent phase] to [NSEvent momentumPhase]
Re: Transition from [NSEvent phase] to [NSEvent momentumPhase]
- Subject: Re: Transition from [NSEvent phase] to [NSEvent momentumPhase]
- From: Seth Willits <email@hidden>
- Date: Fri, 16 Mar 2012 12:29:06 -0700
On Mar 16, 2012, at 11:38 AM, Markus Spoettl wrote:
> I take it either (a) I'm the only one here having this problem or (b) it is so badly explained that no one knows that I'm talking about? If it's (b) I can try again...
Never needed to do it.
Can you dispatch_async(main_queue, ^{ if (did not start momentum) cleanUp(); }); to insert that after the next handling of the event loop which should either start the momentum cycle or not (if it isn't needed)? I don't know if that cycle is guaranteed to start on the next event loop cycle or not. Actually come to thinking of it, that dispatch probably gets executed at the end of the current event loop run anyway.
Perhaps there's a better time to do cleanup altogether?
--
Seth Willits
_______________________________________________
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