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 terminators more generally, you can use e.g. - getParagraphStart:end:contentsEnd:forRange: in a little loop.

Douglas Davidson

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to