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: Thu, 05 May 2011 11:11:41 -0700
On Thu, May 5, 2011 at 10:59 AM, Shawn Bakhtiar <email@hidden> wrote:
> What? It does too work! Once the window is setup correctly.
>
> This is how a do all my transparent windows, and for any naysayers out there
> here is the code:
> http://www.inksystemsinc.com/images/lshaped_window_proof.tar.gz
I have seen no indication from the OP that he is trying to draw a
transparent window. All he's said is that he wants an L-shaped view.
> Filling a rect DOES NOT NUKE anything, you simply need to override the
> defaults which are optimized for rectangular non transparencies areas to
> make them faster. It's not that they can't its just faster not too, so that
> is the default.
Yes, filling a rect DOES nuke things. It overwrites the window backing
store. If you have a transparent window, that's probably what you
want. But a lot of people operate under the mistaken belief that each
view is drawn into its own backing store, and then all the views'
backing stores are composited together. Such a setup would make it
safe for views in opaque windows to blithely clear their backing
stores, but because this is not the case, filling with clearColor is
probably not what you want.
--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