Alan, mine is a fresh 0.9.3 install. But thanks for the suggestion
anyway.
I looked at this exception further. The code that actually causes the
exception is in the Network.isReachable method, where it checks if the
isIpAddress option is set to true. See code below. The if statement
seems to check if the value is a string "true" instead of a boolean
true. Again I am not a objective-c programmer, so I could have
interpreted the code incorrectly. (I am a c/c++ programmer, but no way
a c/c++ programmer can understand objective-c syntax without some
serious learning.)
==> if ([options existsValue:@"true" forKey:@"isIpAddress"]) {
[[Reachability sharedReachability] setAddress:hostName];
} else {
[[Reachability sharedReachability] setHostName:hostName];
}
I looked around the code and found another place where a boolean
option is checked, but differently. Below is code found in Camera.m
bool allowEdit = [[options valueForKey:@"allowEdit"] boolValue];
I think this is the right way to check bool value in objectivc-c.
Thoughts?