• 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
Re: CALayer contentScale initialization, where to do it? (SOLVED)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >CALayer contentScale initialization, where to do it? (From: Markus Spoettl <email@hidden>)
 >Re: CALayer contentScale initialization, where to do it? (From: Kyle Sluder <email@hidden>)
 >Re: CALayer contentScale initialization, where to do it? (From: Markus Spoettl <email@hidden>)
 >Re: CALayer contentScale initialization, where to do it? (From: Kyle Sluder <email@hidden>)
 >Re: CALayer contentScale initialization, where to do it? (From: Markus Spoettl <email@hidden>)
 >Re: CALayer contentScale initialization, where to do it? (From: David Duncan <email@hidden>)

  • Prev by Date: Re: CALayer contentScale initialization, where to do it?
  • Next by Date: Re: CALayer contentScale initialization, where to do it?
  • Previous by thread: Re: CALayer contentScale initialization, where to do it?
  • Next by thread: [ANN] MPWDrawingContext, pleasant Objective-C drawing context
  • Index(es):
    • Date
    • Thread