Re: Drawing a circle progress meter
Re: Drawing a circle progress meter
- Subject: Re: Drawing a circle progress meter
- From: Jonathan Wight <email@hidden>
- Date: Mon, 28 Nov 2005 17:46:54 -0500
The code is extremely simple. I subclassed NSProgressIndicator and
overrode drawRect. I also had to override a bunch of set* methods to
trigger a redraw. NSBezierPath has a nice arc method to draw the pie
slice. I can email you the code if you want - but doing it yourself
shouldn't take long.
Jon.
On Nov 28, 2005, at 17:35, Chad Armstrong wrote:
XCode and Apple Mail have this progress meter, which shows a circle
which gets filled in as the task is completed. I cannot find any
related images to this progress meter, so I'm guessing that this is
drawn. How simple or difficult is this to draw with the circle
being filled in as the "pieces of the pie" are added? Drawing the
circle itself seems fairly trivial, but I'm not quite as certain
about drawing a sector of the circle.
Any example code (or URLs to example code) would be greatly
appreciated. Thanks.
Chad Armstrong
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40toxicsoftware.com
This email sent to email@hidden
_______________________________________________
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