• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
[Help] NSTableDataSource and EXC_BAD_ACCESS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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


  • Follow-Ups:
    • Re: [Help] NSTableDataSource and EXC_BAD_ACCESS
      • From: Brendan Younger <email@hidden>
  • Prev by Date: Re: [OT] 10.1
  • Next by Date: Re: Native Java (was Re: Learning Cocoa ..).
  • Previous by thread: Re: [OT] 10.1
  • Next by thread: Re: [Help] NSTableDataSource and EXC_BAD_ACCESS
  • Index(es):
    • Date
    • Thread