On Wed, May 4, 2011 at 1:09 PM, Shawn Bakhtiar <[email protected]> wrote:
> Actually you only need one view. Subclass it, and over ride the draw method
>
>
>
> [[NSColor clearColor] set]
> NSFillRect(...) <- the size you want to clear out.
>

Don't do this. It doesn't do what you think it does.

The window only has one backing store bitmap. All normal views are
drawn into this bitmap in order. So filling a rect with clearColor
actually nukes the background of the window. It'll draw as a black
rectangle on your screen.

--Kyle Sluder
_______________________________________________

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