• 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: Remove '\n' char from NSString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Remove '\n' char from NSString


  • Subject: Re: Remove '\n' char from NSString
  • From: Steven Riggs <email@hidden>
  • Date: Sat, 15 Nov 2008 20:41:28 -0500

Something like [string stringByReplacingOccurrencesOfString:@"\n" withString:@" "] should do the trick

Adios!
    Steven Riggs


On Nov 14, 2008, at 6:18 PM, Jordon Hirshon wrote:

Is there an NSString function that would remove all of the '\n' chars from an NSString?

I'm trying to concatenate all of the lines in a string into one gigantic line
(about 50000 unicode chars).


Jordon





_______________________________________________

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

_______________________________________________

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


  • Follow-Ups:
    • Re: Remove '\n' char from NSString
      • From: Douglas Davidson <email@hidden>
References: 
 >Remove '\n' char from NSString (From: Jordon Hirshon <email@hidden>)

  • Prev by Date: Configure a button added in IB
  • Next by Date: Re: Configure a button added in IB
  • Previous by thread: Remove '\n' char from NSString
  • Next by thread: Re: Remove '\n' char from NSString
  • Index(es):
    • Date
    • Thread