On Thu, May 21, 2009 at 10:52 PM, Ken Tozier <kentoz...@comcast.net> wrote: > Perhaps I'm not understanding how transforms are supposed to work, but from > my reading of the relevant drawing and transform documentation, I got the > impression that if a transform was applied to a view, it treated the view > and all it's subviews as a single unit. Is that not the case?
There's no reason to assume that a superview's -drawRect will be called before a subview's -drawRect, and even if there were there's no guarantee that the framework doesn't call -[NSGraphicsContext saveGraphicsState] before and -[NSGraphicsContext restoreGraphicsState] afterwards. This is especially true when AppKit optimizes away a superview draw when a subview that returns YES from -isOpaque completely obscures the superview. If you want to apply scaling to your subviews, you need to use the frame and bounds rectangles appropriately or communicate your transformation matrices to your subviews as you are currently doing. --Kyle Sluder _______________________________________________ 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