• 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
Animating a flickering display
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Animating a flickering display
      • From: douglas welton <email@hidden>
    • Re: Animating a flickering display
      • From: Kyle Sluder <email@hidden>
    • Re: Animating a flickering display
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: Why is a button in a window not redrawn when I change its state?
  • Next by Date: Re: Why is a button in a window not redrawn when I change its state?
  • Previous by thread: Problem when load nib file
  • Next by thread: Re: Animating a flickering display
  • Index(es):
    • Date
    • Thread