Re: NSMutableArray with NSMutableDictionaries
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