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
#import "NSScreen+HighestDensity.h" | |
@implementation NSScreen (HighestDensity) | |
+ (CGFloat)highestDensity { | |
// Support for OSX 10.6 | |
if (![[NSScreen mainScreen] respondsToSelector:@selector(backingScaleFactor)]) return 1.0f; | |
NSArray *screens = [NSScreen screens]; | |
CGFloat highestDensity = 1.0f; |