• 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: NSMutableArray with NSMutableDictionaries
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSMutableArray with NSMutableDictionaries


  • Subject: Re: NSMutableArray with NSMutableDictionaries
  • From: Andy Lee <email@hidden>
  • Date: Sat, 28 May 2005 14:48:02 -0400

On May 28, 2005, at 2:41 PM, Jerry Brace wrote:
I have a NSMutableArray which contains a collection of NSMutableDictionaries. I'd like to know how to reference a NSMutableDictionary in the array by index so that I can read the values and update them.

Same way you'd access any other element of an NSArray:


// Get a reference to the dictionary. NSMutableDictionary *dict = [myArray objectAtIndex:37];

// Update it.
[dict setObject:@"my value" forKey:@"my key"];



--Andy

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSMutableArray with NSMutableDictionaries
      • From: john <email@hidden>
References: 
 >NSMutableArray with NSMutableDictionaries (From: Jerry Brace <email@hidden>)

  • Prev by Date: NSMutableArray with NSMutableDictionaries
  • Next by Date: Re: NSNumber is completely broken
  • Previous by thread: NSMutableArray with NSMutableDictionaries
  • Next by thread: Re: NSMutableArray with NSMutableDictionaries
  • Index(es):
    • Date
    • Thread