NSTableView setDatasource doesn't retain the source?
NSTableView setDatasource doesn't retain the source?
- Subject: NSTableView setDatasource doesn't retain the source?
- From: Allan Odgaard <email@hidden>
- Date: Tue, 5 Feb 2002 07:52:40 +0100
Maybe I'm doing something wrong but:
If I call autorelease on the datasource before I hand it over to
NSTableView's setDatasource selector, then my program "crash" the second
time the TableView needs to redraw itself.
I tried to NSLog(@"Ref count: %d", [myDatasource retainCount]) before
and after handing over the object, and it didn't change.