• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: L-shaped custom view in Cocoa?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: L-shaped custom view in Cocoa?
      • From: Vyacheslav Karamov <email@hidden>
References: 
 >Re: L-shaped custom view in Cocoa? (From: Bertil Holmberg <email@hidden>)
 >RE: L-shaped custom view in Cocoa? (From: Shawn Bakhtiar <email@hidden>)
 >Re: L-shaped custom view in Cocoa? (From: Kyle Sluder <email@hidden>)
 >RE: L-shaped custom view in Cocoa? (From: Shawn Bakhtiar <email@hidden>)

  • Prev by Date: RE: L-shaped custom view in Cocoa?
  • Next by Date: Re: Threading synchronization: does a primitive exists?
  • Previous by thread: RE: L-shaped custom view in Cocoa?
  • Next by thread: Re: L-shaped custom view in Cocoa?
  • Index(es):
    • Date
    • Thread