When working programmatically with display modes in OS X ( documentation ), I found that CGDisplayCopyAllDisplayModes does not take into account the rightmost option that is presented in the system settings.
A simple utility that prints the size of the current display mode, and all available sizes of the display mode display this
current size: 1920x1200 available sizes: 2880x1800 1440x900 2560x1600 2048x1280 1024x768 800x600 640x480 1680x1050 1280x800
1920x1200 is a valid option 
All other parameters that specify system settings are presented in the list. Does anyone know why 1920x1200 might not turn on? I tried moving to another predefined value in the system prefixes, but did not enable 1920x1200 .
Edit (the accepted answer is much better than these frauds, but I leave this information just in case)
βScalableβ display modes can be found by referencing a private API.
You can create a header file that makes private methods available: see this meaning , which I borrowed from this project .
Then you can see all modes, including scaled ones, such as
print("Private modes:\n") var numDisplayModes: Int32 = 0 CGSGetNumberOfDisplayModes(mainDisplayID, &numDisplayModes) print("Num modes \(numDisplayModes)") for i in 0...(numDisplayModes-1) { var pmode: CGPrivDisplayMode = CGPrivDisplayMode() CGSGetDisplayModeDescriptionOfLength(mainDisplayID, CInt(i), &pmode, CInt(sizeof(CGPrivDisplayMode))) print("\t\(pmode.modeNumber): \(pmode.width)x\(pmode.height) -- \(pmode.density) \n") }
source share