• 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?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CALayer contentScale initialization, where to do it?


  • Subject: Re: CALayer contentScale initialization, where to do it?
  • From: Kyle Sluder <email@hidden>
  • Date: Sat, 16 Jun 2012 11:08:32 -0700

On Jun 16, 2012, at 4:13 AM, Markus Spoettl <email@hidden> wrote:

> I usually create the layers (if there's a fixed number of them) in the view's -initWithFrame:. At that point the view doesn't have a window, so I can't set contentScale correctly (by getting the window's backingScaleFactor).

Is this strategy documented somewhere? The High-Resolution Guide says to avoid looking at the windows backingScaleFactor at all, but it's very sparse on details about supporting CALayer.

--Kyle Sluder
_______________________________________________

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

  • Follow-Ups:
    • Re: CALayer contentScale initialization, where to do it?
      • From: Markus Spoettl <email@hidden>
References: 
 >CALayer contentScale initialization, where to do it? (From: Markus Spoettl <email@hidden>)

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