Re: Out-of-bounds error when removing entry from NSForm
Re: Out-of-bounds error when removing entry from NSForm
- Subject: Re: Out-of-bounds error when removing entry from NSForm
- From: George Orthwein <email@hidden>
- Date: Tue, 15 May 2007 11:35:47 -0400
I'm glad that actually helped! Yeah I didn't explain it very well,
but you got the gist. :)
Let's say there are 3 rows at the start.
First Loop:
Row index 0 is removed, you are left with 2 rows.
Second loop:
Row index 1 (the second row) is removed, you are left with 1 row.
Third loop:
Row index 2 tries to remove, but that is now out of bounds since
there is only 1 row left.
George
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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