discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Composing an NSString with number within


From: Michael Hopkins
Subject: Composing an NSString with number within
Date: Sun, 3 Aug 2008 14:19:27 +0100
User-agent: Unison/1.8.1


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
______________________________________________



reply via email to

[Prev in Thread] Current Thread [Next in Thread]