Re: Hiding the Window Content View
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