Re: UI blocking
Re: UI blocking
- Subject: Re: UI blocking
- From: "Paul Sanders" <email@hidden>
- Date: Mon, 17 May 2010 12:21:49 +0100
On May 16, 2010, at 3:37 PM, Tobias Jordan wrote:
> Hey guys,
>
> I have a CA transition running which obviously doesn't support any blocking modes (CABasicAnimation). I must block the UI during the transition so the user can't click somewhere and something unexpected happens. I think all animations in OS X are blocking the UI, for example minimizing a window going into the dock. Question, is there a way to block the UI / main thread or maybe just a window? I tried using usleep but looks like the animation and its drawing view don't like that. I can't believe there's no 'setBlockingMode' or something like that for CAAnimation.
>
> Thanks in advance!
The approach I use is to subclass NSApplication and throw awat mouse, keyboard and gesture events in -[MySubclassedNSApplication sendEvent:] instead of calling super. For added style, beep.
Paul Sanders.
_______________________________________________
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