• 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: Progress indicator in dock icon with animation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Progress indicator in dock icon with animation


  • Subject: Re: Progress indicator in dock icon with animation
  • From: Uli Kusterer <email@hidden>
  • Date: Mon, 8 Aug 2005 18:59:44 +0200

On Aug 6, 2005, at 15:40:13, Christopher Atlan wrote:
one base of http://lists.apple.com/archives/cocoa-dev/2004/Mar/ msg01443.html and http://lists.apple.com/archives/cocoa-dev/2004/ Feb/msg00518.html i try do get a NSProgressIndicator Indeterminate with animation in the dock icon.

My current version work, but is slow and need to much cpu power. Has someone a idea to get i faster?

I just wrote some code that manually draws the progress bar (without using the control). Every time someone changes the value of the bar, I do a new drawing directly to an NSImage, which I then set as the dock tile image. I didn't want the "water" animation in the dock icon anyway (too distracting), so I just did that.


I did a little gradient and drew that scaled as the progress bar fill, but that's it. Nice and fast.

Cheers,
-- M. Uli Kusterer
http://www.zathras.de


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Progress indicator in dock icon with animation (From: Christopher Atlan <email@hidden>)

  • Prev by Date: Re: Reverse engineering
  • Next by Date: Re: NSScroller drawing problems
  • Previous by thread: Progress indicator in dock icon with animation
  • Next by thread: NSTabViews and windowcontroller(s)
  • Index(es):
    • Date
    • Thread