Layer-backed view confused by bounds transformation
Layer-backed view confused by bounds transformation
- Subject: Layer-backed view confused by bounds transformation
- From: Nathan Vander Wilt <email@hidden>
- Date: Wed, 19 Aug 2009 16:25:43 -0700
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 (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