Open main menu

CDOT Wiki β

Changes

User:John Dang

904 bytes added, 11:44, 30 January 2009
Apple Development
<h6>[http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSArray_Class/Reference/Reference.html NSArray]</h6>
<ul>
<li>'''''- (NSUInteger)count'''''</li>  <span style="color:#6600FF;">NSArray</span> *nsarray = [<span style="color:#6600FF;">NSArray</span> <span style="color:#660099;">arrayWithObjects</span>:<span style="color:#CC0000;">@"Open Source!"</span>]; <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>]; <span style="color:#6600FF;">NSUInteger</span> *count; count = [nsarray <span style="color:#660099;">count</span>]; <li>'''''- (id)objectAtIndex:(NSUInteger)index'''''</li>  <span style="color:#6600FF;">NSObject</span> *nsobject = [nsarray <span style="color:#660099;">objectAtIndex</span>:0]; <li>'''''- (id)lastObject'''''</li>  <span style="color:#6600FF;">NSObject</span> *nsobject = [nsarray <span style="color:#660099;">lastObject</span>:0]; 
</ul>
<h6>[http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSMutableArray_Class/Reference/Reference.html NSMutableArray]</h6>
1
edit