bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView bug?


From: Nicola Pero
Subject: Re: NSTableView bug?
Date: Wed, 17 Oct 2001 18:27:16 +0100 (BST)

Ok - thanks - changed

> The data source is not retained on OS 4.2.
> 
> > Anybody with an apple machine can confirm that the data source is not
> > retained on apple ?
> > 
> > > Hi,
> > > 
> > > In NSTableView: - (void) setDataSource: (id)anObject
> > > 
> > > We do:
> > > 
> > >   ...
> > >   ASSIGN (_dataSource, anObject);
> > >   [self tile];
> > >   [self reloadData];
> > > 
> > > and it should be:
> > > 
> > >   _dataSource = anObject;
> > >   [self tile];
> > >   [self reloadData];
> > > 
> > > 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).
> 
> 
> _______________________________________________
> Bug-gnustep mailing list
> Bug-gnustep@gnu.org
> http://mail.gnu.org/mailman/listinfo/bug-gnustep
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]