• 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: IKImageBrowserView, drawing on layers and retina display
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IKImageBrowserView, drawing on layers and retina display


  • Subject: Re: IKImageBrowserView, drawing on layers and retina display
  • From: Dragan Milić <email@hidden>
  • Date: Mon, 10 Feb 2014 11:59:12 +0100

Okay, replying to myself here…

On pon 10.02.2014., at 10.30, Dragan Milić wrote:

> I haven't done many things with CALayers in the past, so maybe I'm missing some setting to make this work, but it doesn't look like that looking at that class' public API. On the other hand I find it hard to believe that IKImageBrowserView custom drawing onto its layers is not retina-compliant!


Setting layer's contentsScale like:

[result setContentsScale:[[[[self imageBrowserView] window] screen] backingScaleFactor]];

solves the retina issue! Drawing on retina displays works fine now.

The remaining issue is that strings drawn on the layer (using standard string drawing methods) still don't have antialiasing.

-- Dragan
_______________________________________________

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: IKImageBrowserView, drawing on layers and retina display
      • From: Dragan Milić <email@hidden>
References: 
 >IKImageBrowserView, drawing on layers and retina display (From: Dragan Milić <email@hidden>)

  • Prev by Date: IKImageBrowserView, drawing on layers and retina display
  • Next by Date: Re: IKImageBrowserView, drawing on layers and retina display
  • Previous by thread: IKImageBrowserView, drawing on layers and retina display
  • Next by thread: Re: IKImageBrowserView, drawing on layers and retina display
  • Index(es):
    • Date
    • Thread