• 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
NSTableView: Out-Of-Bounds Array Error on reloadData
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView: Out-Of-Bounds Array Error on reloadData


  • Subject: NSTableView: Out-Of-Bounds Array Error on reloadData
  • From: syntonica <email@hidden>
  • Date: Wed, 22 Jul 2009 23:53:51 -0700 (PDT)

Hello Panel--

Ok, this is really annoying me.  My app works fabulously on 10.4, but on 10.5, gives an out-of-bounds array error when I reloadData on a tableView with a dataSource.

The gist of the code is:

<code>
-(void)awakeFromNib
{
if ([entryArray count] == 0) addNewEntry;  // which it does on app opening
[tableView reloadData] // which should display the new entry but bombs out on 10.5 with an OOB array error and the doc window does not display
}
</code>

The entryArray is, of course, the dataSource for the tableView.

Opening a data doc rather than generating a new doc gives the same error, also on a "reloadData" elsewhere in the code.

I am assuming I am hitting a bug in 10.4 that was fixed in 10.5, but for the life of me, I cannot figure out what it may be.  Recompiling in 10.5 does not give me any clues.

What am I missing?  If anyone can steer me in the correct direction, I would be most grateful.  Unfortunately, Google has been most unhelpful on this topic.

Thanks in advance,
Kevin

~Syntonica
[kraken release];




_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSTableView: Out-Of-Bounds Array Error on reloadData
      • From: Graham Cox <email@hidden>
    • Re: NSTableView: Out-Of-Bounds Array Error on reloadData
      • From: Laurent Cerveau <email@hidden>
References: 
 >NSTableView - populating from C procedure (From: Alexander Bokovikov <email@hidden>)

  • Prev by Date: Re: NSTableView - populating from C procedure
  • Next by Date: Re: NSTableView - populating from C procedure
  • Previous by thread: Re: NSTableView - populating from C procedure
  • Next by thread: Re: NSTableView: Out-Of-Bounds Array Error on reloadData
  • Index(es):
    • Date
    • Thread