3 @interface NSMutableArray
4 - (id
)objectAtIndexedSubscript
:(unsigned int)index
;
5 - (void)setObject
:(id
)object atIndexedSubscript
:(unsigned int)index
;
8 @interface NSMutableDictionary
9 - (id
)objectForKeyedSubscript
:(id
)key
;
10 - (void)setObject
:(id
)object forKeyedSubscript
:(id
)key
;
14 NSMutableArray
*array
;
15 id oldObject
= array
[10];
17 array
[10] = oldObject
;
19 NSMutableDictionary
*dictionary
;
22 oldObject
= dictionary
[key
];
24 dictionary
[key
] = newObject
;