[ NSString stringWithFormat:@"%@%d%@", first_part, file_num, last_part ];
Michael Hopkins schrieb:
Hi all
Quick question about creating an NSString (or NSMutableString) with a
number in the middle i.e.
int file_num = 6;
NSString* first_part = @"start_of_path";
NSString* last_part = @"end_of_path";
I want to use Cocoa/GNUstep base to concatenate and get:
first_part + file_num + last_part
..with no spaces in between as an NSString or NSMutableString. Any
ideas on the most elegant solution?
TIA
Michael
______________________________________________
Hopkins Research Touch the Future
______________________________________________
_______________________________________________
Discuss-gnustep mailing list
Discuss-gnustep@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnustep