Re: DataSource protocol
Re: DataSource protocol
- Subject: Re: DataSource protocol
- From: Marinus van der Lugt <email@hidden>
- Date: Sat, 19 Jan 2002 15:25:24 +0100
Hi All,
The objects that I pass on to the NSTableView via the DataSource
protocol seem to be released by the NSTableView. When I try to
access these objects later the app crashes.
Well, after a week of searching I finally found the cause.
The test data objects that I displayed in the TableView were created with
conveniance constructors. But conveniance constructors autorelease
the objects they create. Thus causing the object's disappearance
after the initial TableView is drawn.
I suspect that this error is quite common in a multitude of forms with
beginning Cocoa programmers.
You have been warned :-)
Best,
Rien.