Skip to content
Browse files

recognize versions v303 (10.7.3) and v304 (10.8 Preview 1)

  • Loading branch information...
1 parent 542f9e9 commit 4a3cd17c5123d26033d9078c3fc2e9e493030625 @darwin darwin committed Feb 18, 2012
Showing with 6 additions and 3 deletions.
  1. +2 −0 totalterminal-plugin/base/Versions.h
  2. +4 −3 totalterminal-plugin/base/Versions.m
View
2 totalterminal-plugin/base/Versions.h
@@ -7,6 +7,8 @@ typedef enum {
v273_1 = 100, // 10.6.8
v297, // 10.7 (Lion GM)
v299, // 10.7.2 update
+ v303, // 10.7.3 update
+ v304, // 10.8 (Mountain Lion Preview 1)
vUnknown, // this position is important for comparing, we assume unknown are future Terminal versions
vMaxSupportedTerminalVersion
} TSupportedTerminalVersions;
View
7 totalterminal-plugin/base/Versions.m
@@ -29,14 +29,15 @@ TSupportedTerminalVersions initializeTerminalVersion() {
TSupportedTerminalVersions version = vUnknown;
if ([terminalVersion isEqualToString:@"273.1"]) {
- // 10.6.8
version = v273_1;
} else if ([terminalVersion isEqualToString:@"297"]) {
- // 10.7 (GM)
version = v297;
} else if ([terminalVersion isEqualToString:@"299"]) {
- // 10.7.2 update
version = v299;
+ } else if ([terminalVersion isEqualToString:@"303"]) {
+ version = v303;
+ } else if ([terminalVersion isEqualToString:@"304"]) {
+ version = v304;
}
if (version == vUnknown) {
// try to parse it and detect historical version

0 comments on commit 4a3cd17

Please sign in to comment.
Something went wrong with that request. Please try again.