• 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 color fading
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Animating color fading


  • Subject: Animating color fading
  • From: Steve Moore <email@hidden>
  • Date: Fri, 27 Nov 2009 09:03:17 -0700

Hello.  I'm not making much progress on this by myself so I thought I'd ask for a helping hand.  I am writing a small app for my 5 year old.  In it I've got a 10 x 10 matrix with a custom NSCell prototype.  He is asked a question and is required to click on the correct  NSCell(s).  If he clicks on a wrong cell I want to draw the cell Red but have it fade to it's normal color over a period of about 1 second.

I think this is really a color question, though I'm not sure.  I figured I'd just set a timer and redraw the cell (drawInteriorWithFrame: inView: ) applying an ever decreasing alpha but this just results in the cell eventually being drawn black.

Any suggestions about how to proceed?
  -- Thanks.


_______________________________________________

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 color fading
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Re: My try/catch block isn't catching exceptions on 10.6
  • Next by Date: Polymorphic relationship and migration
  • Previous by thread: Re: SystemConfiguration.framework
  • Next by thread: Re: Animating color fading
  • Index(es):
    • Date
    • Thread