1
edit
Changes
m
→Apple Development
<li>'''''- (void)addObject:(id)that'''''</li>
<span style="color:#6600FF;">NSArrayNSMutableArray</span> *nsarray nsmarray = [<span style="color:#6600FF;">NSArrayNSMutableArray</span> <span style="color:#660099;">initWithObjects</span>:<span style="color:#CC0000;">@"Open Source!"</span>];
[nsarray nsmarray <span style="color:#660099;">addObject</span>]:<span style="color:#CC0000;">@"Open Mind!"</span>];
<li>'''''- (void)addObjectFromArray:(NSArray *)that'''''</li>
<span style="color:#6600FF;">NSArrayNSMutableArray</span> *nsarray1 nmsarray = [<span style="color:#6600FF;">NSArrayNSMutableArray</span> <span style="color:#660099;">initWithObjects</span>:<span style="color:#CC0000;">@"Open Source!"</span>]; <span style="color:#6600FF;">NSArray</span> *nsarray2 nsarray = [<span style="color:#6600FF;">NSArray</span> <span style="color:#660099;">initWithObjects</span>:<span style="color:#CC0000;">@"Open Mind!"</span>];
[nsarray1 nsmarray <span style="color:#660099;">addObjectFromArray</span>:nsarray2nsarray];
<li>'''''- (void)insertObject:(id)that atIndex:(NSUInteger)index'''''</li>
<span style="color:#6600FF;">NSArrayNSMutableArray</span> *nsarray nsmarray = [<span style="color:#6600FF;">NSArrayNSMutableArray</span> <span style="color:#660099;">initWithObjects</span>:<span style="color:#CC0000;">@"Open Source!"</span>];
[nsarray nsmarray <span style="color:#660099;">insertObject</span>:<span style="color:#CC0000;">@"Open Mind!"</span> <span style="color:#660099;">atIndex</span>:1];
<li>'''''- (void)removeAllObjects'''''</li>
<span style="color:#6600FF;">NSArrayNSMutableArray</span> *nsarray nsmarray = [<span style="color:#6600FF;">NSArrayNSMutableArray</span> <span style="color:#660099;">initWithObjects</span>:<span style="color:#CC0000;">@"Open Source!"</span>]; [nsarray nsmarray <span style="color:#660099;">addObject</span>]:<span style="color:#CC0000;">@"Open Mind!"</span>];
[nsarray <span style="color:#660099;">removeAllObjects</span>];
<li>'''''- (void)removeObject:(id)that'''''</li>
<span style="color:#6600FF;">NSArrayNSMutableArray</span> *nsarray nsmarray = [<span style="color:#6600FF;">NSArrayNSMutableArray</span> <span style="color:#660099;">initWithObjects</span>:<span style="color:#CC0000;">@"Open Source!"</span>]; [nsarray nsmarray <span style="color:#660099;">addObject</span>]:<span style="color:#CC0000;">@"Open Mind!"</span>];
[nsarray nsamrray <span style="color:#660099;">removeObject</span>:<span style="color:#CC0000;">@"Open Source!"</span>];
<li>'''''- (void)removeObjectAtIndex:(NSUInteger)index'''''</li>
<span style="color:#6600FF;">NSArrayNSMutableArray</span> *nsarray nsmarray = [<span style="color:#6600FF;">NSArrayNSMutableArray</span> <span style="color:#660099;">initWithObjects</span>:<span style="color:#CC0000;">@"Open Source!"</span>]; [nsarray nsmarray <span style="color:#660099;">addObject</span>]:<span style="color:#CC0000;">@"Open Mind!"</span>];
[nsarray nsmarray <span style="color:#660099;">removeObjectAtIndex</span>:0];
</ul>