• 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: NSView modifies CALayer's masksToBounds?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSView modifies CALayer's masksToBounds?


  • Subject: Re: NSView modifies CALayer's masksToBounds?
  • From: Kyle Sluder <email@hidden>
  • Date: Thu, 16 Apr 2009 21:46:22 -0400

On Thu, Apr 16, 2009 at 9:17 PM, Mike Manzano
<email@hidden> wrote:
> [theView setLayer: theRootLayer];
> [theView setWantsLayer:YES];
>
> Is this what you mean by a "layer-hosted view"? If so, does that mean that
> theRootLayer is mine to manage as I wish?

Yes.  If you set the layer before calling -setWantsLayer:, you get a
layer-hosted view (think of it as AppKit saying "I will allow the view
you provided to host this view.")  On the other hand, if you call
-setWantsLayer: without calling -setLayer:, AppKit creates a private
view and says "Mine!".

--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:
    • [SOLVED] Re: NSView modifies CALayer's masksToBounds?
      • From: Mike Manzano <email@hidden>
References: 
 >NSView modifies CALayer's masksToBounds? (From: Mike Manzano <email@hidden>)
 >Re: NSView modifies CALayer's masksToBounds? (From: Kyle Sluder <email@hidden>)
 >Re: NSView modifies CALayer's masksToBounds? (From: Mike Manzano <email@hidden>)

  • Prev by Date: Re: Reading in dictionary from txt file: options for speed
  • Next by Date: Re: Reading in dictionary from txt file: options for speed
  • Previous by thread: Re: NSView modifies CALayer's masksToBounds?
  • Next by thread: [SOLVED] Re: NSView modifies CALayer's masksToBounds?
  • Index(es):
    • Date
    • Thread