[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Wed, 17 Oct 2001 12:08:55 -0400 (EDT)
In NSTableView: - (void) setDataSource: (id)anObject
ASSIGN (_dataSource, anObject);
and it should be:
_dataSource = anObject;
We should also remove the TEST_RELEASE(_dataSource) in -dealloc.
The docs don't mention that we must retain the _dataSource and it can
cause a leak (it does for all "logical" dealloc "chain" method calls I can
imagine - the _dataSource will always have a retainCount >= 1).
Live as if you were to die tomorrow.
Learn as if you were to live forever.
- NSTableView bug?,
Ludovic Marcotte <=