This repository was archived by the owner on Sep 2, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -222,9 +222,9 @@ -(void)windowTitleDidChange:(NSString*)title {
222222}
223223
224224-(BOOL )isRunningOnYosemite {
225- // this API returns nil prior to Yosemite
226- NSDictionary * dict = [ NSDictionary dictionaryWithContentsOfFile :@" /System/Library/CoreServices/SystemVersion.plist " ];
227- return dict != nil ;
225+ NSDictionary * dict = [ NSDictionary dictionaryWithContentsOfFile: @" /System/Library/CoreServices/SystemVersion.plist " ];
226+ NSString * version = [dict objectForKey :@" ProductVersion " ];
227+ return [version hasPrefix: @" 10.10 " ] ;
228228}
229229
230230- (BOOL )isFullScreenSupported {
Original file line number Diff line number Diff line change @@ -166,9 +166,9 @@ - (void)setIsReallyClosing {
166166}
167167
168168-(BOOL )isRunningOnYosemite {
169- // this API returns nil prior to Yosemite
170- NSDictionary * dict = [ NSDictionary dictionaryWithContentsOfFile :@" /System/Library/CoreServices/SystemVersion.plist " ];
171- return dict != nil ;
169+ NSDictionary * dict = [ NSDictionary dictionaryWithContentsOfFile: @" /System/Library/CoreServices/SystemVersion.plist " ];
170+ NSString * version = [dict objectForKey :@" ProductVersion " ];
171+ return [version hasPrefix: @" 10.10 " ] ;
172172}
173173
174174- (BOOL )isFullScreenSupported {
You can’t perform that action at this time.
0 commit comments