2012-04-02 00:34:09

Abel Gancsos
concat strings in Cocoa

NSString *s1=@"I love ";
NSString *s2=input.stringValue;
NSString *s3=[s1 stringByAppendingString:s2];

[outPut setStringValue:[NSString stringWithFormat:@"%@",s3]];



TIP: REPLACE [] WITH STANDARD HYPERTEXT PROTOCOL.
TIP: REPLACE WHATEVER IS BETWEEN THE [] WITH YOUR INFORMATION.



Hope that helps!