Changes

Jump to: navigation, search

User:John Dang

166 bytes added, 14:26, 10 February 2009
m
Apple Development
<span style="color:#6600FF;">NSArray</span> *nsarray = [<span style="color:#6600FF;">NSArray</span> <span style="color:#660099;">initWithObjects</span>:<span style="color:#CC0000;">@"Open Source!"</span>];
[nsarray <span style="color:#660099;">addObject</span>]:<span style="color:#CC0000;">@"Next StringOpen Mind!"</span>];
<li>'''''- (void)addObjectFromArray:(NSArray *)that'''''</li>
<span style="color:#6600FF;">NSArray</span> *nsarray = [<span style="color:#6600FF;">NSArray</span> <span style="color:#660099;">initWithObjects</span>:<span style="color:#CC0000;">@"Open Source!"</span>];
[nsarray <span style="color:#6600FF660099;">NSObjectaddObject</span> *nsobject ]:<span style= "color:#CC0000;">@"Open Mind!"</span>]; [nsarray <span style="color:#660099;">lastObjectremoveAllObjects</span>];
<li>'''''- (void)removeObject:(id)that'''''</li>
<span style="color:#6600FF;">NSArray</span> *nsarray = [<span style="color:#6600FF;">NSArray</span> <span style="color:#660099;">initWithObjects</span>:<span style="color:#CC0000;">@"Open Source!"</span>];
[nsarray <span style="color:#6600FF660099;">NSObjectaddObject</span> *nsobject ]:<span style= "color:#CC0000;">@"Open Mind!"</span>]; [nsarray <span style="color:#660099;">lastObjectremoveObject</span>:<span style="color:#CC0000;">@"Open Source!"</span>];
<li>'''''- (void)removeObjectAtIndex:(NSUInteger)index'''''</li>
1
edit

Navigation menu