When building I was not getting any warnings but when archiving I got a lot of typing warnings all involving stringWithFormat and one an issue using NSNotFound. I was able to resolve all the stringWithFormat problems except for one, and still remain stumped by the NSNotFound issue. These are listed below. Thanks for any help
The following code...
if ([[NSString stringWithFormat:@"%.*s", [data length], [data bytes]] isEqualToString:@"Success"]) {
return YES;
}
Generates this warning for the format string...
Field precision should have type 'int', but argument has type 'NSUInteger' (aka 'unsigned long')
The following code...
if (![_response rangeOfString:@"|TreatmentCards|0|"].location == NSNotFound) {
return NO;
}
Generates...
Comparison of constant 'NSNotFound' (9223372036854775807) with expression of type 'int' is always false