Animating a flickering display
Animating a flickering display
- Subject: Animating a flickering display
- From: "Dr. Scott Steinman" <email@hidden>
- Date: Mon, 04 Jul 2011 13:31:15 -0500
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