For each of the screens returned by [NSScreen screens] , you can call:
[screen frame]
to get an NSRect containing size and offset for each screen. The "main" screen (i.e. the one that is on the menu bar) will have an offset (0, 0) .
This should be a lot easier than handling -deviceDescription .
source share