Attaching a data source to a table?
Attaching a data source to a table?
- Subject: Attaching a data source to a table?
- From: Izak van Langevelde <email@hidden>
- Date: Sun, 6 May 2001 15:10:48 +0200
I seem to be missing the obvious, but I cannot get this to work. In the
Interface Builder I added an NSTableView to a window, and connected an
instance of NSObject to it as a data source. This data source implements
the required methods for the number of rows and getting and setting
table elements.
However, any attempt to access the data stored in the data source
results in an EXC_BAD_ACCESS, and it looks like the actual data was
released earlier. Should I explicitly alloc and init a data source,
instead of using the instance from the nib?
Any clue?