Re: A rather simple question about coercion
Re: A rather simple question about coercion
- Subject: Re: A rather simple question about coercion
- From: Ondra Cada <email@hidden>
- Date: Fri, 26 Oct 2001 17:27:28 +0100
Newton,
>
>>>>> Newton et Compagnie (NeC) wrote at Fri, 26 Oct 2001 17:02:47 +0200:
NeC> I just want to concatenate a string and an int, and didn't find any
NeC> example or help for this very complicated task.
One of possibilities is newstring=[NSString
stringWithFormat:@"%@%d",oldstring,number] (presuming number is an int, not
an NSNumber -- in the latter case there should be %@%@).
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
2K Development: email@hidden
http://www.2kdevelopment.cz
private email@hidden
http://www.ocs.cz/oc