[Help] NSTableDataSource and EXC_BAD_ACCESS
[Help] NSTableDataSource and EXC_BAD_ACCESS
- Subject: [Help] NSTableDataSource and EXC_BAD_ACCESS
- From: Ronaldo Nascimento <email@hidden>
- Date: Wed, 18 Jul 2001 17:29:58 -0400
I am having problems implementing a version of NSTableDataSource.
I have my own NSTableDataSource which has an array (1 dimension) with the
NSTableView having 1 col. The controller class has 1 member which
represents the instance of the DataSource. I alloc and init it and add my
NSArray for the data. Then I setDataSource with it and reloadData. It
appears in the UI for a split second and then crashes out with a
EXC_BAD_ACCESS.
stack:
objc_msgSend
-[MyDataSource numberOfRowsInTableView:]
...
And the strange thing is when I click on -[MyDataSource
numberOfRowsInTableView:] in the Debug Frame panel the self variable is
listed "out of scope" but the NSArray (which is a member of self) is shown
with the proper & valid address.
I have been struggling with the debugger for several hours now, and there
does not appear to be a sophisticated memory viewer.
Any help would be appreciated.
Ronaldo Nascimento
VP of Technology, NetProof Systems
http://www.netproof.com