Re: Attaching a data source to a table?
Re: Attaching a data source to a table?
- Subject: Re: Attaching a data source to a table?
- From: Chuck Pisula <email@hidden>
- Date: Mon, 7 May 2001 10:41:52 -0700
You don't have to explicitly allocate it, connecting you custom NSObject
subclass in IB should be fine.
Sounds like you are referencing some deallocated data somewhere. try
running your app with NSZombiesEnabled YES (env, or command line) to see
if you are trying to message a freed object. Or use gdb to figure out
where you are hitting the bad access.
-chuck
On Sunday, May 6, 2001, at 06:10 AM, Izak van Langevelde wrote:
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?
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev