• 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: Retina / non retina : Drawing icons
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Retina / non retina : Drawing icons


  • Subject: Re: Retina / non retina : Drawing icons
  • From: Erwin Namal <email@hidden>
  • Date: Mon, 26 Aug 2013 13:40:09 +0200

On Aug 26, 2013, at 9:08 AM, Lee Ann Rucker <email@hidden> wrote:

> Create an NSImage with representations in both sizes:
>
> http://lists.apple.com/archives/cocoa-dev/2013/Aug/msg00374.html



On Aug 26, 2013, at 12:23 PM, Marcel Weiher <email@hidden> wrote:
>
> The NSImage documentation suggests that imageWithSize:flipped:drawingHandler:  is your friend.
>
> "Using this method ensures you’ll get correct results under standard and high resolution.”

Thank you both for your replies. Reading the code and the docs, the size in points of an UI element is the same for retina and non retina displays, but it maps to more pixels for retina display.
I still have one question: How do I get the size in points of an menu extra icon ?

Thank you for your time.
– E
_______________________________________________

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: Retina / non retina : Drawing icons
      • From: Shane Stanley <email@hidden>
References: 
 >Retina / non retina : Drawing icons (From: Erwin Namal <email@hidden>)
 >Re: Retina / non retina : Drawing icons (From: Marcel Weiher <email@hidden>)

  • Prev by Date: Re: Retina / non retina : Drawing icons
  • Next by Date: Re: "Introducing ioscomponents.com"
  • Previous by thread: Re: Retina / non retina : Drawing icons
  • Next by thread: Re: Retina / non retina : Drawing icons
  • Index(es):
    • Date
    • Thread