equal
deleted
inserted
replaced
123 if (trackingVersion == nil || [trackingVersion isEqualToString:version] == NO) { |
123 if (trackingVersion == nil || [trackingVersion isEqualToString:version] == NO) { |
124 [userDefaults setObject:version forKey:@"HedgeVersion"]; |
124 [userDefaults setObject:version forKey:@"HedgeVersion"]; |
125 [userDefaults synchronize]; |
125 [userDefaults synchronize]; |
126 [self createNecessaryFiles]; |
126 [self createNecessaryFiles]; |
127 } |
127 } |
128 |
128 |
|
129 /* |
129 ServerSetup *setup = [[ServerSetup alloc] init]; |
130 ServerSetup *setup = [[ServerSetup alloc] init]; |
130 if ([setup isNetworkReachable]) { |
131 if ([setup isNetworkReachable]) { |
131 DLog(@"network is reachable"); |
132 DLog(@"network is reachable"); |
132 [NSThread detachNewThreadSelector:@selector(serverProtocol) |
133 [NSThread detachNewThreadSelector:@selector(serverProtocol) |
133 toTarget:setup |
134 toTarget:setup |
134 withObject:nil]; |
135 withObject:nil]; |
135 } |
136 } |
136 [setup release]; |
137 [setup release]; |
|
138 */ |
137 } |
139 } |
138 |
140 |
139 |
141 |
140 #pragma mark - |
142 #pragma mark - |
141 -(IBAction) switchViews:(id) sender { |
143 -(IBAction) switchViews:(id) sender { |