Re: index out of bounds
Re: index out of bounds
- Subject: Re: index out of bounds
- From: Steve Christensen <email@hidden>
- Date: Thu, 6 Jul 2006 13:00:06 -0700
On Jul 4, 2006, at 10:32 PM, Rex Fernando wrote:
I have a table with data in it. When someone clicks the remove
button, I get the selection array and remove all the objects in it.
If there is an empty selection, I am told index out of bounds,
naturally, because there are no items in the array. Can I just
leave this error? Or should I make a catch for it?
What's generating the index out of bounds? Are you trying to retrieve
an array element without first checking to see if anything is in the
array and/or that the selected index is valid?
steve
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden