An NSView's bounds can be set to a different size than its frame, which results in a transform being applied to the graphics context as the view is drawn. How is this supposed to affect subviews if the view is layer backed?

If I set my view's bounds to have half the width of its frame, all its subviews are drawn and work correctly at double their normal size. When I turn on layer backing for this view, its subviews are no longer drawn transformed, although event handling remains transformed. If I turn on layer backing for just a subview, it displays at double size momentarily, but soon gets drawn at normal size even though events are handled at the double size.

Is this to be expected? What are the geometry implications for Core Animation when the hosting view has a bounds transform?

thanks,
-natevw
_______________________________________________

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 arch...@mail-archive.com

Reply via email to