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: Uli Kusterer <email@hidden>
- Date: Wed, 14 Jun 2006 11:51:54 +0200
Am 14.06.2006 um 03:38 schrieb Derrick Bass:
In my drawRect method, I setFrame the progress indicator and text
field and then I call drawRect for the progress indicator followed
by the text field. But whether the text or the progress bar comes
out on top seems arbitrary. Moreover, the text DOES draw the
background, so when it's on top it completely obscures the progress
bar below it.
*never* setFrame: from a drawRect method. setFrame may cause window
content to be marked as needing to be redrawn, and thus can cause
drawRect to be called again, thus eventually causing a sort of
endless loop.
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
_______________________________________________
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