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 (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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to