When I've try to Analyse .m, I've got strange warning:
warning: Object with a +0 retain count returned to caller where a +1 (owning) retain count is expected
on the line
return [NSNumber numberWithInt:1];
the code is:
- (NSNumber*)index
{
return [NSNumber numberWithInt:1];
}
Similar code with string is passed correctly.
- (NSString*)ss
{
return [NSString stringWithFormat:@"%d", 1];
}
Did I miss something with NSNumber constructor, or is it bug in Analyser?