RE: Error: mutating method sent to immutable object
RE: Error: mutating method sent to immutable object
- Subject: RE: Error: mutating method sent to immutable object
- From: Priscila J.V. <email@hidden>
- Date: Sat, 4 Apr 2009 19:39:36 +0000
- Importance: Normal
>
>> thanks for your advice but now the message in the log window is:
>> *** -[NSCFArray objectAtIndex:]: index (1) beyond bounds (1)
>>
>> Can you please suggest me something to fix it?
>
> Bug-fixing tip number 1: Don't do that.
>
> In particular: Stop trying to index past the end of the array.
>
> Take a close look at your 'for' loop, and consider what happens if
> the array contains fewer than 7 items.
>
> Then look at the basic documentation for NSArray and read about the -
> count method.
>
> -- GG
Hello Greg,
thanks a lot for your suggestions :-)
cheers
Priscila
_________________________________________________________________
Vous voulez savoir ce que vous pouvez faire avec le nouveau Windows LiveĀ ? Lancez-vous !
http://www.microsoft.com/windows/windowslive/default.aspx_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden