• 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: Out-of-bounds error when removing entry from NSForm
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Out-of-bounds error when removing entry from NSForm (From: Sam Stigler <email@hidden>)
 >Re: Out-of-bounds error when removing entry from NSForm (From: George Orthwein <email@hidden>)
 >Re: Out-of-bounds error when removing entry from NSForm (From: Sam Stigler <email@hidden>)

  • Prev by Date: Multiple Document Question
  • Next by Date: Re: NSDictionary valueForKey: and @ character at start of NSString
  • Previous by thread: Re: Out-of-bounds error when removing entry from NSForm
  • Next by thread: Re: Out-of-bounds error when removing entry from NSForm
  • Index(es):
    • Date
    • Thread