Skip to content

Instantly share code, notes, and snippets.

@garethjenkins
Created July 1, 2012 10:22
Show Gist options
  • Save garethjenkins/3027835 to your computer and use it in GitHub Desktop.
Save garethjenkins/3027835 to your computer and use it in GitHub Desktop.
Write NSScreen output to log
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