Why does it have a "Return makes pointer from integer without a cast" warning?
I have a "Person" object that contains an NSString and an int.
-(id)tableView:(NSTableView *)tableView objectValueForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row
{
Person *thePerson = [theList objectAtIndex:row];
if (tableColumn == nameTableColumn)
{
return thePerson.theName;
}
else if (tableColumn == ageTableColumn)
{
return thePerson.theAge;
}
else
return nil;
}
For some kind of reason, the Age instance variable gets a warning about pointers. It's weird and I want to know why.