Created
July 1, 2012 10:22
-
-
Save garethjenkins/3027835 to your computer and use it in GitHub Desktop.
Write NSScreen output to log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSArray *screens=[NSScreen screens]; | |
for(NSScreen *s in screens) | |
{ | |
NSLog(@"\n"); | |
NSLog(@"description: %@", s.description); | |
NSLog(@"backing scale factor: %f", s.backingScaleFactor); | |
NSLog(@"frame %@", NSStringFromRect(s.frame)); | |
NSLog(@"visibleFrame %@", NSStringFromRect(s.visibleFrame)); | |
NSLog(@"device description: %@", s.deviceDescription); | |
NSLog(@"------------------------------------\n\n"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment