Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8092329
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T20:15:40+00:00 2026-06-05T20:15:40+00:00

Given a Cocoa application which runs on Mac OS X 10.7 and later: What

  • 0

Given a Cocoa application which runs on Mac OS X 10.7 and later:

What is the best way to check, at runtime, if your app is currently running on a Mac with at least one retina display attached?

If checking for this sort of thing is just really wrong-headed, I fully welcome a well-reasoned explanation of why (and I will up-vote such answers if they are good).

But I’d still like to know :).

It seems likely you could just do a check specifically for the new Mac Book Pro “Retina” hardware (the only Mac which currently has a retina display), but I’d really prefer a more general/generic/future-proof way to check than this.

Ideally, I’d like to know how to detect the retina display, not the specific Mac model which currently happens to ship with a retina display.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T20:15:41+00:00Added an answer on June 5, 2026 at 8:15 pm

    If you really do need to do this, take a look at -[NSScreen backingScaleFactor]. But, this does seem wrong-headed, at least without knowing more about why you want to know.

    While there is currently only one Mac with a Retina display, there may eventually be standalone displays that support Retina (and can be attached/detached at runtime) and you may be able to configure the built-in Retina display in 1x mode. Thus the answer to the question “is there a Retina display attached” can change at any time.

    Rather, you may want to know if your content should be drawn with a given scale by using the -convert*ToBacking: methods or -[NSWindow backingScaleFactor]. For a ton more detail, watch the WWDC 2012 session video “Advanced Tips and Tricks for High Resolution on OS X” (when posted, hopefully within the next few weeks).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am developing an application in Cocoa. I want to constantly check whether the
I'm writing a Cocoa app for Leopard that, given a directory of text files,
I have an Xcode project which builds a Cocoa desktop Browser application. My Browser
I've made a desktop application which uses Cocoa's NSTokenField: alt text http://developer.apple.com/documentation/Cocoa/Conceptual/TokenField_Guide/Art/tokenfield.jpg More info
I'm working (at least trying...) on a Cocoa application, which uses several custom Cocoa
My Cocoa application displays file icons for all files in a given folder. I'm
I am developing a Cocoa application which communicates constantly with a web service to
On Mac OS X, how can I tell if a given application opens a
I am writing an enterprise client/server application. The client is an iOS app which
I'm working on a Cocoa application into which I'd like to allow Mail messages

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.