• 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
Layer-backed view confused by bounds transformation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: When do I need to override hash?
  • Next by Date: Re: devil of a time with an NSImageView
  • Previous by thread: Re: When do I need to override hash?
  • Next by thread: otest output in xUnit XML format?
  • Index(es):
    • Date
    • Thread