• 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: Damien Sorresso <email@hidden>
  • Date: Wed, 14 Jun 2006 00:33:42 -0500

On 14 Jun, 2006, at 12:01 AM, Derrick Bass wrote:
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.

Tell the progress bar animation to stop.

[progressBar stopAnimation];

That should do the trick. Unless I'm misreading something.
--

Damien Sorresso

"If English was good enough for Jesus Christ, then it is good enough for Texas children."
-Texas Governor "Ma" Ferguson, holding a King James Bible in her hand, on Spanish being taught in Texas public schools.



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: Derrick Bass <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>)
 >Re: Drawing text on top of a progress bar (From: Derrick Bass <email@hidden>)

  • Prev by Date: Re: Drawing text on top of a progress bar
  • Next by Date: Re: dynamic GUI, how to?
  • 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