Re: Remove '\n' char from NSString

2008-11-17 Thread Douglas Davidson
On Nov 15, 2008, at 5:41 PM, Steven Riggs wrote: Something like [string stringByReplacingOccurrencesOfString:@"\n" withString:@" "] should do the trick Yes, or the mutable equivalent, provided that your line terminators are specified to be precisely '\n'. If you wish to deal with line t

Re: Remove '\n' char from NSString

2008-11-15 Thread Steven Riggs
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 concaten

Remove '\n' char from NSString

2008-11-15 Thread Jordon Hirshon
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 5 unicode chars). Jordon ___ Cocoa-dev mailing list (Cocoa-de