Skip to content

Commit

Permalink
Improve version error
Browse files Browse the repository at this point in the history
  • Loading branch information
robbertkl committed Nov 6, 2016
1 parent 400a72e commit fb4d682
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions TouchBarServer/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,13 @@ - (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
if (!NSClassFromString(@"DFRElement")) {
NSAlert *alert = [[NSAlert alloc] init];
[alert setMessageText:@"Error: could not detect Touch Bar support"];
[alert setInformativeText:@"We need at least macOS 10.12.1 (build 16B2657)"];
[alert setInformativeText:[NSString stringWithFormat:@"We need at least macOS 10.12.1 (Build 16B2657).\n\nYou have: %@.\n", [NSProcessInfo processInfo].operatingSystemVersionString]];
[alert addButtonWithTitle:@"Exit"];
[alert runModal];
[alert addButtonWithTitle:@"Get macOS Update"];
NSModalResponse response = [alert runModal];
if(response == NSAlertSecondButtonReturn) {
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"https://support.apple.com/kb/dl1897"]];
}

[NSApp terminate:nil];
return;
Expand Down

0 comments on commit fb4d682

Please sign in to comment.