• 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: A rather simple question about coercion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >A rather simple question about coercion (From: Newton et Compagnie <email@hidden>)

  • Prev by Date: A rather simple question about coercion
  • Next by Date: Re: NSBezierPath with RoundRect?
  • Previous by thread: A rather simple question about coercion
  • Next by thread: Re: A rather simple question about coercion
  • Index(es):
    • Date
    • Thread