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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/lcerveau%40me.com

This email sent to lcerv...@me.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to