Fehler in checkUpdateNeeded() behoben.

This commit is contained in:
Gerrit Linnemann 2013-11-08 16:03:27 +01:00
parent 9e688c332b
commit d871d50416
3 changed files with 4 additions and 4 deletions

View File

@ -680,7 +680,7 @@
<rect key="screenRect" x="0.0" y="0.0" width="2560" height="1418"/> <rect key="screenRect" x="0.0" y="0.0" width="2560" height="1418"/>
<view key="contentView" id="R0G-2c-z7t"> <view key="contentView" id="R0G-2c-z7t">
<rect key="frame" x="0.0" y="0.0" width="480" height="309"/> <rect key="frame" x="0.0" y="0.0" width="480" height="309"/>
<autoresizingMask key="autoresizingMask"/> <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews> <subviews>
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Um2-TU-XD5"> <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Um2-TU-XD5">
<rect key="frame" x="17" y="272" width="104" height="17"/> <rect key="frame" x="17" y="272" width="104" height="17"/>

View File

@ -53,7 +53,7 @@
NSLog(@"update resource: %@", WS_RESOURCE); NSLog(@"update resource: %@", WS_RESOURCE);
updateResult = [self doWebServiceUpdate]; updateResult = [self doWebServiceUpdate];
} else { } else {
NSLog(@"no update"); NSLog(@"no update needed");
} }
return updateResult; return updateResult;
@ -91,8 +91,8 @@
NSLog(@"fetched IPv4 NULL"); NSLog(@"fetched IPv4 NULL");
return NO; return NO;
} else { } else {
NSLog(@"compare stored %@ with %@", storedIPv4, fetchedIPv4); BOOL changed = ![storedIPv4 isEqualToString:fetchedIPv4];
BOOL changed = [storedIPv4 isEqualToString:fetchedIPv4]; NSLog(@"compare stored %@ with %@. Changed: %@", storedIPv4, fetchedIPv4, (changed ? @"yes" : @"no"));
return changed; return changed;
} }
} }