Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Enable Yosemite Native Traffic Lights on OSX 10.10 #478

Merged
merged 3 commits into from
Oct 21, 2014

Conversation

JeffryBooher
Copy link
Contributor

This is for adobe/brackets#9608

  • Use system traffic lights on Yosemite
  • Hide the Full Screen Button since the Native Traffic Lights do this
  • Use custom traffic lights on 10.8, 10.9

@@ -221,16 +221,35 @@ -(void)windowTitleDidChange:(NSString*)title {
#endif
}

-(BOOL)isRunningOnYosemite {
// this API returns nil prior to Yosemite
NSDictionary * dict = [NSDictionary dictionaryWithContentsOfFile:@"/System/Library/CoreServices/SystemVersion.plist"];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I think we should be consistent with the placement of the *.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants