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

Re: NSTableView: Out-Of-Bounds Array Error on reloadData


  • Subject: Re: NSTableView: Out-Of-Bounds Array Error on reloadData
  • From: Laurent Cerveau <email@hidden>
  • Date: Thu, 23 Jul 2009 12:32:31 +0200

You should check at the effect of reloadData to all your datasource methods (numberOfRowsInTableView and so on)

laurent

On Jul 23, 2009, at 8:53 AM, syntonica wrote:


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

_______________________________________________

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


References: 
 >NSTableView: Out-Of-Bounds Array Error on reloadData (From: syntonica <email@hidden>)

  • Prev by Date: Re: Core Animation rendering problem
  • Next by Date: Outline view bound to an NSTreeController's content shows all children at the top level
  • Previous by thread: NSTableView: Out-Of-Bounds Array Error on reloadData
  • Next by thread: Re: NSTableView: Out-Of-Bounds Array Error on reloadData
  • Index(es):
    • Date
    • Thread