Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: NSMutableArray with NSMutableDictionaries
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSMutableArray with NSMutableDictionaries



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

References: 
 >NSMutableArray with NSMutableDictionaries (From: Jerry Brace <email@hidden>)
 >Re: NSMutableArray with NSMutableDictionaries (From: Andy Lee <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.