discuss-gnustep
[Top][All Lists]
Advanced

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

Re: Composing an NSString with number within


From: Michael Hopkins
Subject: Re: Composing an NSString with number within
Date: Sun, 3 Aug 2008 15:59:44 +0100
User-agent: Unison/1.8.1

On 2008-08-03 14:46:41 +0100, Thomas Gamper <icicle@cg.tuwien.ac.at> said:

[ 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

Thanks Thomas.

--
______________________________________________

   Hopkins Research      Touch the Future
______________________________________________



reply via email to

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