왜 "반환 값은 캐스트가없는 정수에서 포인터를 만듭니다"라는 경고가 있습니까?경고 "반환은 캐스트가없는 정수에서 포인터를 만듭니다"
NSString과 int가 들어있는 "Person"개체가 있습니다.
-(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; }
어떤 이유로 인해 Age 인스턴스 변수에 포인터에 대한 경고가 표시됩니다. 이상 하네. 왜 그런지 알고 싶다.