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: Thomas Gamper
Subject: Re: Composing an NSString with number within
Date: Sun, 03 Aug 2008 15:46:41 +0200
User-agent: Thunderbird 2.0.0.16 (X11/20080724)

[ 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





reply via email to

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