• 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 text on top of a progress bar
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drawing text on top of a progress bar


  • Subject: Re: Drawing text on top of a progress bar
  • From: Derrick Bass <email@hidden>
  • Date: Wed, 14 Jun 2006 00:01:37 -0500


On Jun 13, 2006, at 10:55 PM, Sherm Pendley wrote:

Have you tried subclassing NSProgressIndicator? You could override - drawRect: to first call super's -drawRect:, which would take care of the progress bar. Then you could use NSString's - drawInRect:options:attributes: to draw your text over that.

Gah, now why didn't I think of that? Well, that's definitely better. But now the problem is that when the progress indicator is set to something other than its minimum or maximum, the "heart bear" animation overprints the text.


Derrick
_______________________________________________
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
  • Follow-Ups:
    • Re: Drawing text on top of a progress bar
      • From: Damien Sorresso <email@hidden>
References: 
 >Drawing text on top of a progress bar (From: Derrick Bass <email@hidden>)
 >Re: Drawing text on top of a progress bar (From: Sherm Pendley <email@hidden>)

  • Prev by Date: Re: Drawing text on top of a progress bar
  • Next by Date: PopupMenu takes two clicks to release
  • Previous by thread: Re: Drawing text on top of a progress bar
  • Next by thread: Re: Drawing text on top of a progress bar
  • Index(es):
    • Date
    • Thread