That did it. Thanks!

One last question. If I supply my own layer, is it legal to add subviews to the view that's hosting my layer?

On Apr 16, 2009, at 6:46 PM, Kyle Sluder wrote:

On Thu, Apr 16, 2009 at 9:17 PM, Mike Manzano
<[email protected]> 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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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