• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSString format parameter order
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSString format parameter order


  • Subject: Re: NSString format parameter order
  • From: "B.J. Buchalter" <email@hidden>
  • Date: Tue, 08 Apr 2008 05:51:52 -0400

You can use the POSIX standard library (sprintf) rather than NSStrings for this...

On Apr 8, 2008, at 5:48 AM, Jere Gmail wrote:

On Apr 8, 2008, at 3:33 AM, Jere Gmail wrote:


I'm looking for a way to switch parameters order in order to use the
same parameters for different languages.
something like

NSString string1=@"you"
NSString string1=@"hello"
NSString str=[NSString stringWithFormat:@"%2 %1", string1,string2];

will make str value "hello you".
I have been working with CString over in windows and it is possible
but i don't find any alternatives


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden




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

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden

B.J. Buchalter Metric Halo http://www.mhlabs.com


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


References: 
 >NSString format parameter order (From: "Jere Gmail" <email@hidden>)
 >Re: NSString format parameter order (From: Michael Vannorsdel <email@hidden>)
 >Re: NSString format parameter order (From: "Jere Gmail" <email@hidden>)

  • Prev by Date: Re: NSString format parameter order
  • Next by Date: Re: NSString format parameter order
  • Previous by thread: Re: NSString format parameter order
  • Next by thread: Re: NSString format parameter order
  • Index(es):
    • Date
    • Thread