Re: NSCFArray -- What the heck?
Re: NSCFArray -- What the heck?
- Subject: Re: NSCFArray -- What the heck?
- From: Marc Weil <email@hidden>
- Date: Mon, 19 Jan 2004 11:49:32 -0500
Well, arrays start at zero and go up to their bound minus 1. So this
array here has three elements: 0, 1, and 2. Your program tried to
access element 3, which is beyond the bounds of the array.
This isn't specific to NSCFArrays, but is standard throughout all
arrays in all languages (at least mainstream languages).
- Marc Weil
On Jan 19, 2004, at 11:30 AM, Michael Becker wrote:
Hi!
Can anybody explain to me what THIS is about:
2004-01-19 17:29:33.001 client[2606] *** -[NSCFArray objectAtIndex:]:
index (3) beyond bounds (3)
??
Bye,
Michael
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.