Re: Animating a flickering display
Re: Animating a flickering display
- Subject: Re: Animating a flickering display
- From: douglas welton <email@hidden>
- Date: Wed, 06 Jul 2011 08:33:27 -0400
Have you looked at using Quartz Composer as a solution to accomplish this?
On Jul 4, 2011, at 2:31 PM, Dr. Scott Steinman wrote:
> My program needs to display counterphase flickering test, i.e., one display is white text on a black background, and the other is black text on a white background, and the two displays are switched back and forth. I have concluded that there are two options to do this:
>
> 1. Draw each display into two NSViews, then switch back and forth between between them (via replaceSubview:with:) with an NSTimer to time the switches.
> 2. Use Core Animation to fade in one display and fade in the other.
>
> In each case, I don't know how to avoid blocking a button presses whose action would stop the animation.
>
> Which is the better way to proceed? How do I keep the user interface responsive?
>
> Please point me in the right direction.
>
> Thank you.
>
> Scott
_______________________________________________
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