Re: Drawing text on top of a progress bar
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