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 (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to