Re: L-shaped custom view in Cocoa?
Re: L-shaped custom view in Cocoa?
- Subject: Re: L-shaped custom view in Cocoa?
- From: Kyle Sluder <email@hidden>
- Date: Wed, 04 May 2011 18:02:56 -0700
On Wed, May 4, 2011 at 1:09 PM, Shawn Bakhtiar <email@hidden> 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@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