Re: Very simple question
Re: Very simple question
- Subject: Re: Very simple question
- From: King Chung Huang <email@hidden>
- Date: Tue, 13 Jul 2004 21:12:45 -0600
int numberOfLines = 1000;
NSString *lines = [NSString stringWithFormat:@"(%i lines drawn)",
numberOfLines];
King Chung Huang
Learning Commons
University of Calgary
On Jul 13, 2004, at 8:46 PM, Theodore H. Smith wrote:
How do I dynamically construct a string? Like this:
(0 lines drawn)
(10 lines drawn)
(1000 lines drawn)
etc etc. I'm having trouble trying to turn my number into a string! I
can't find the right function to do it. I suppose there's always
sprintf, eh? I was hoping that maybe things would be easier under
Cocoa.
--
Theodore H. Smith - Software Developer.
http://www.elfdata.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.