• 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: Concat simply 2 strings for NSString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Concat simply 2 strings for NSString


  • Subject: Re: Concat simply 2 strings for NSString
  • From: Greg Hurrell <email@hidden>
  • Date: Wed, 3 Aug 2005 14:52:33 +0200

El 03/08/2005, a las 13:07, Andreas Mayer escribió:

Am 03.08.2005 um 12:41 Uhr schrieb email@hidden:

I need to concat simply and fastly two strings (one of them in a variable) in NSString creation without use NSMutableString and appendString.

NSString *newString = [firstString stringByAppendingString:secondString];

Or if you need to insert a space between the two strings (as in your example) you could use:


- (id)initWithFormat:(NSString *)format, ...

Or:

+ (id)stringWithFormat:(NSString *)format, ...

Greg




_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Concat simply 2 strings for NSString (From: email@hidden)
 >Re: Concat simply 2 strings for NSString (From: Andreas Mayer <email@hidden>)

  • Prev by Date: Re: addSubView
  • Next by Date: Re: Mixing C++ with Objective C
  • Previous by thread: Re: Concat simply 2 strings for NSString
  • Next by thread: Re: NSStatusItem:setImage - Icon not displaying (problem solved)
  • Index(es):
    • Date
    • Thread