Re: Changing content of object inside NSMutableArray
Re: Changing content of object inside NSMutableArray
- Subject: Re: Changing content of object inside NSMutableArray
- From: Nick Zitzmann <email@hidden>
- Date: Thu, 2 Jul 2009 16:52:29 -0600
On Jul 2, 2009, at 4:36 PM, Agha Khan wrote:
This works, but this is not changing the content inside the GameArray.
How this can be done.
Use -replaceObjectAtIndex:withObject:. You are responsible for
maintaining your own arrays; changing a pointer will not change the
contents of the array.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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