Re: Progress indicator in dock icon with animation
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