Open main menu

CDOT Wiki β

Changes

User:John Dang

1,373 bytes added, 15:00, 10 February 2009
m
Apple Development
<h6>[http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html NSString]</h6>
<ul>
<li>'''''- (id)initWithFormat:(NSString *)format, ...'''''</li>  <span style="color:#6600FF;">NSString</span> *nsstring = [<span style="color:#6600FF;">NSString</span> <span style="color:#660099;">initWithFormat</span>:<span style="color:#CC0000;">@"Open %s!"</span>, <span style="color:#CC0000;">@"Source"</span>]; <li>'''''- (NSUInteger)length'''''</li>  <span style="color:#6600FF;">NSString</span> *nsstring = [<span style="color:#6600FF;">NSString</span> <span style="color:#660099;">initWithFormat</span>:<span style="color:#CC0000;">@"Open %s!"</span>, <span style="color:#CC0000;">@"Source"</span>]; <span style="color:#6600FF;">NSUInteger</span> *length; length = [nsstring <span style="color:#660099;">length</span>]; <li>'''''- (NSString *)stringByAppendingString:(NSString *)that'''''</li>  <span style="color:#6600FF;">NSString</span> *nsstring1 = [<span style="color:#6600FF;">NSString</span> <span style="color:#660099;">initWithFormat</span>:<span style="color:#CC0000;">@"Open"</span>]; <span style="color:#6600FF;">NSString</span> *nsstring2 = [<span style="color:#6600FF;">NSString</span> <span style="color:#660099;">initWithFormat</span>:<span style="color:#CC0000;">@"Source!"</span>]; <span style="color:#6600FF;">NSString</span> *nsnewstring; nsnewstring = [nsstring1 <span style="color:#660099;">stringByAppendingString</span>:nsstring2]; 
</ul>
<br />
1
edit