I've got a longer answer coming... but

There are two ways to interact with layers.

- making a view layer-backed (that is, the view and its subviews will use CALayers as a caching mechanism) - using a view to host layers (inserting your custom layers into the layer hierarchy with the view's layer as the root layer)

in the first case, you should ignore the layers and not interact with them in the second case you should ignore the view, with the exception of resizing, and do all the layer manipulation yourself.

Also, consider this. For the second case you should be making the layer yourself and setting it before you enable wantsLayer:. You've created the layer directly. The layer has no knowledge of the coordinate space and flipped-ness of the view it is in, and you didn't provide it.



On Jul 7, 2008, at 11:13 PM, Gordon Apple wrote:

    You may be right that I shouldn't muck with the view's layer, but
should add my own base-layer, especially since it seems to be a mystery how
the view's layer responds to changes in the view.

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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