What permission programmers get in Macbook Pro Retina

Note: this question may not be suitable for SO, but I would like to ask here because I want to hear from Mac OS X developers.

Macbook Pro Retina (MPB Retina) has a native resolution of 2880x1800. However, such native permission is not directly exposed. Rather, resolutions such as 1440x900 and 1920x1200 are indicated as shown in the figure below.

From anandtech

I want to know what programmers with permission will see . Is it 2880x1800? Or reduced resolution?

I am particularly interested in how Mac OS X handles such an ultra-display. There can be two approaches: (1) Mac OS X sets the resolution to 2880x1800, and then improves DPI scaling for all programs; (2) Just set a lower resolution with the original DPI setting. (Plain)

Since I have no experience writing an application for Mac OS X, I really want to see how Mac OS X handles this resolution and what are the consequences for programmers to adapt retina display.

+8
dpi screen-resolution retina-display macos
source share
1 answer

From what I know, in 1680x1050 and 1920x1200, Mac OS actually sets the virtual resolution to twice as much (as 3360x2100 or 3840x2400, respectively), and then reduces the scale to a physical resolution of 2880x1800. This allows the resulting image to be quite sharp (there is also a penalty for performance). What resolution the programmer sees depends on whether the Retina application is enabled or not. Mac OS never changes DPI for applications.

Apple has provided extensive guidance on this topic. You can find it here: http://developer.apple.com/library/mac/#documentation/GraphicsAnimation/Conceptual/HighResolutionOSX/Introduction/Introduction.html

+3
source share

All Articles