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

  • Prev by Date: Transparent white NSView
  • Next by Date: Re: Doc App - Errors closing an document.
  • Previous by thread: Re: Drawing text on top of a progress bar
  • Next by thread: Preference Pane vs NSTimer/NSThread
  • Index(es):
    • Date
    • Thread