Re: Concat simply 2 strings for NSString
Re: Concat simply 2 strings for NSString
- Subject: Re: Concat simply 2 strings for NSString
- From: Greg Hurrell <email@hidden>
- Date: Wed, 3 Aug 2005 14:52:33 +0200
El 03/08/2005, a las 13:07, Andreas Mayer escribió:
Am 03.08.2005 um 12:41 Uhr schrieb email@hidden:
I need to concat simply and fastly two strings (one of them in a
variable) in NSString creation without use NSMutableString and
appendString.
NSString *newString = [firstString
stringByAppendingString:secondString];
Or if you need to insert a space between the two strings (as in your
example) you could use:
- (id)initWithFormat:(NSString *)format, ...
Or:
+ (id)stringWithFormat:(NSString *)format, ...
Greg
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden