Re: CALayer contentScale initialization, where to do it? (SOLVED)
Re: CALayer contentScale initialization, where to do it? (SOLVED)
- Subject: Re: CALayer contentScale initialization, where to do it? (SOLVED)
- From: Markus Spoettl <email@hidden>
- Date: Sun, 17 Jun 2012 14:27:29 +0200
On 6/17/12 9:15 AM, David Duncan wrote:
contentsScale won't matter until you the layer into a window, so why not just assign it when you add the layer as a sublayer?
Turns out that my problem was caused by the time the NSView's root layer was set up:
In previous AppKit versions, NSView's -setLayer: -wantsLayer: needed to be
outside of -initWithFrame: because for whatever reason, setting it up in
-initWithFrame: didn't work (it simply was reset).
On Lion this seems to have been fixed - which I didn't realize before - and the
contentsScale of the root layer and its sub-layers is set by the framework
automatically during view initialization/nib loading.
So problem solved, thanks guys!
Regards
Markus
--
__________________________________________
Markus Spoettl
_______________________________________________
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