• 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: Can I make an array of strings into one long string?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can I make an array of strings into one long string?


  • Subject: Re: Can I make an array of strings into one long string?
  • From: "John C. Randolph" <email@hidden>
  • Date: Wed, 22 Aug 2001 13:26:22 -0700

On Wednesday, August 22, 2001, at 01:08 PM, Mark Wridt wrote:

This may seem simple, but can I make an arrya of
strings into one long string?

- (NSString *)componentsJoinedByString:(NSString *)separator

Constructs and returns an NSString that is the result of interposing separator between the elements of the receiver's array. For example, this code excerpt writes the path System/Developer to the console:

NSArray *pathArray = [NSArray arrayWithObjects:@"System",
@"Developer", nil];
NSLog("The path is /%@.\n",
[pathArray componentsJoinedByString:@"/"]);

-jcr

"This is not a book to be tossed aside lightly. Rather, it should be hurled with great force." -Dorothy Parker


References: 
 >Can I make an array of strings into one long string? (From: Mark Wridt <email@hidden>)

  • Prev by Date: RE: FW: Enabling and Disabling menus
  • Next by Date: Re: A couple questions
  • Previous by thread: Can I make an array of strings into one long string?
  • Next by thread: Re: Can I make an array of strings into one long string?
  • Index(es):
    • Date
    • Thread