• 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
Re: animating the dock icon
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: animating the dock icon


  • Subject: Re: animating the dock icon
  • From: Nathan Day <email@hidden>
  • Date: Fri, 16 May 2003 12:55:18 +0930

You will have to create a new image for each fade step. Copy one image and then lock focus on it and draw the other image over top with the method -[NSImage dissolveToPoint:fraction:] with different fraction amounts for each fade step.

On Tuesday, May 13, 2003, at 12:27 PM, Nebagakid wrote:

Hey all,
So, so far, I have this simple code that switches the dock icon from
one image to another, and it works great

id myimage = [NSImage imageNamed: @"shoutservernormal.icns"];
[NSApp setApplicationIconImage: myimage];

what i was wondering is how I would animate a quick dissolve from the
one old image to the new one?
Is this possible?
-Danny Cohen
homepage.mac.com/nebagakid/software
_______________________________________________

Nathan Day
http://homepage.mac.com/nathan_day/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >animating the dock icon (From: Nebagakid <email@hidden>)

  • Prev by Date: Re: HTML hexidecimal code from NSColor
  • Next by Date: Re: Some questions...
  • Previous by thread: animating the dock icon
  • Next by thread: Sharing preferences between applications
  • Index(es):
    • Date
    • Thread