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 protected]>
To: "Kyle Sluder" <[email protected]>
Cc: "cocoa-dev List" <[email protected]>
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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to