Re: NSMutableArray with NSMutableDictionaries
Re: NSMutableArray with NSMutableDictionaries
- Subject: Re: NSMutableArray with NSMutableDictionaries
- From: john <email@hidden>
- Date: Sat, 28 May 2005 17:47:32 -0400
Or even just:
[[myArray objectAtIndex: 37] setObject: @"my value" forKey: @"my key"];
:) Though less efficient if you're making many calls to the dictionary.
-- John
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