Which of the following is correct?
NSTableCellView *cell = [outlineView makeViewWithIdentifier: [tableColumn identifier] owner: self];
// Do stuff…
return cell;
or
NSTableCellView *cell = [[outlineView makeViewWithIdentifier: [tableColumn identifier] owner: self] retain];
// Do stuff…
return cell;
I'm confused because the makeView…
method returns an autoreleased view and table view cells can't be released while the table view is still there. Does the table view retain the cell itself?
Thank you a lot!