• 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: Drawing a circle progress meter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Drawing a circle progress meter (From: Chad Armstrong <email@hidden>)

  • Prev by Date: Re: Drawing a circle progress meter
  • Next by Date: Re: Drawing a circle progress meter
  • Previous by thread: Re: Drawing a circle progress meter
  • Next by thread: Correctly using hidden NSWindow to render offscreen OpenGL Context
  • Index(es):
    • Date
    • Thread