Mac OS X: Best way to do runtime check for retina display?
Posted
by
Todd Ditchendorf
on Stack Overflow
See other posts from Stack Overflow
or by Todd Ditchendorf
Published on 2012-06-16T21:11:23Z
Indexed on
2012/06/16
21:16 UTC
Read the original article
Hit count: 218
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.
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 at this time which currently has a retina display), but ideally, 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.
© Stack Overflow or respective owner