• 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: Hiding the Window Content View
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hiding the Window Content View


  • Subject: Re: Hiding the Window Content View
  • From: "Paul Sanders" <email@hidden>
  • Date: Fri, 8 Jan 2010 21:06:10 -0000

Well, there is no flicker issue to worry about, but to optimise
for this case (i.e. save some CPU cycles), have the view you are
drawing into return YES from its isOpaque method.  Cocoa will
then assume that this view completely obliterates whatever lies
behind it (including the content view).  You could also subclass
the content view if you want to (you can do this in Interface
Builder) and draw directly into that.

Paul Sanders.

----- Original Message -----
From: "David Blanton" <email@hidden>
To: "Kyle Sluder" <email@hidden>
Cc: "cocoa-dev List" <email@hidden>
Sent: Friday, January 08, 2010 8:46 PM
Subject: Re: Hiding the Window Content View


I am just trying to find the best way to do rapid drawing with
no flicker.  I don't see an override on background drawing so I
was wanting to eliminate the backgroud of the content view.



_______________________________________________

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: 
 >Hiding the Window Content View (From: David Blanton <email@hidden>)
 >Re: Hiding the Window Content View (From: Kyle Sluder <email@hidden>)
 >Re: Hiding the Window Content View (From: David Blanton <email@hidden>)

  • Prev by Date: Re: Flicker Free Drawing
  • Next by Date: Re: Flicker Free Drawing
  • Previous by thread: Re: Hiding the Window Content View
  • Next by thread: Re: Hiding the Window Content View
  • Index(es):
    • Date
    • Thread