• 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: Changing content of object inside NSMutableArray
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Changing content of object inside NSMutableArray (From: Agha Khan <email@hidden>)

  • Prev by Date: Re: documenting bindings (was: Re: Dynamically loading a part of a Window in Cocoa)
  • Next by Date: Re: Determining OS at Runtime
  • Previous by thread: Changing content of object inside NSMutableArray
  • Next by thread: Re: Changing content of object inside NSMutableArray
  • Index(es):
    • Date
    • Thread