• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: UI blocking
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: UI blocking
      • From: Uli Kusterer <email@hidden>
References: 
 >UI blocking (From: Tobias Jordan <email@hidden>)
 >Re: UI blocking (From: Charles Srstka <email@hidden>)

  • Prev by Date: Re: Looking for Cocoa Drawing Strategy Advice
  • Next by Date: Can't get the formatted number of NSTextfield
  • Previous by thread: Re: UI blocking
  • Next by thread: Re: UI blocking
  • Index(es):
    • Date
    • Thread