• 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: white screen windows at first
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: white screen windows at first


  • Subject: Re: white screen windows at first
  • From: "Paul Sanders" <email@hidden>
  • Date: Wed, 28 Apr 2010 23:52:21 +0100

> Paul outlined a way to draw outside of drawRect: however I
> think it
> would be better to use lockFocusIfCanDraw instead of
> lockFocus.

Yes, I agree, although it begs the question of what to do if
lockFocusIfCanDraw returns NO.  In my experience, that only
happens when the view (or any of its ancestor views) is hidden
so you can just give up in that case.  I agree also that drawing
within drawRect: is much the best way, but it occurs to me that
you might have a ton of existing code that doesn't see life in
those terms.  I'd head in that direction though, if you can.

Paul Sanders.



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >white screen windows at first (From: Bill Appleton <email@hidden>)
 >Re: white screen windows at first (From: "Paul Sanders" <email@hidden>)
 >Re: white screen windows at first (From: Bill Appleton <email@hidden>)
 >Re: white screen windows at first (From: Uli Kusterer <email@hidden>)
 >Re: white screen windows at first (From: Bill Appleton <email@hidden>)
 >Re: white screen windows at first (From: "Paul Sanders" <email@hidden>)
 >Re: white screen windows at first (From: vincent habchi <email@hidden>)
 >Re: white screen windows at first (From: Bill Appleton <email@hidden>)
 >Re: white screen windows at first (From: Shawn Erickson <email@hidden>)

  • Prev by Date: Re: Floating window on iPhone OS?
  • Next by Date: Change management using CFRunLoopObserver
  • Previous by thread: Re: white screen windows at first
  • Next by thread: Re: white screen windows at first
  • Index(es):
    • Date
    • Thread