Well, I have found a "good" solution using
stringByReplacingOccurrencesOfString:withString:options:range:
The only problem is that one of the parameters is a float, and if I
want to display it with more or less precision I would have to make a
preprocess of the parameter format into the string.

Now it works with:
[str stringByReplacingOccurrencesOfString:@"%1" withString:string1]

On Tue, Apr 8, 2008 at 11:55 AM, Michael Vannorsdel <[EMAIL PROTECTED]> wrote:
> You could load the strings into an NSArray and then use the proper indexes
> to print out the string you want.
>
>
>
>  On Apr 8, 2008, at 3:48 AM, Jere Gmail wrote:
>
>
> > Well, it's not a language thing at this moment but it started this way.
> > Right now I have a txt file with one string with the places where the
> > fields should be. I use it as a template to generate an HTML from some
> > fields obtained from and XML.
> > This way I can change the page displayed without having to recompile
> > the application.
> >
>
>
>  _______________________________________________
>
>  Cocoa-dev mailing list ([email protected])
>
>  Please do not post admin requests or moderator comments to the list.
>  Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
>  Help/Unsubscribe/Update your Subscription:
>  http://lists.apple.com/mailman/options/cocoa-dev/zon7mail%40gmail.com
>
>  This email sent to [EMAIL PROTECTED]
>



-- 
http://zon7blog.wordpress.com/
And again we fall.
_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to