On Apr 11, 2008, at 10:23 AM, allan greenier wrote:
If I have an NSString that is multi lined (say in contains "\n" characters) is there an api call so I can get line 0, line 1, ect? Or should I just code that myself?


There is no "NSLineEnumerator" (although that would be a very cool addition), you basically have to do it manually.

NSString has a method to help you identify line endings in case you have to deal with files that could use different characters / character sequences to represent that (\n, \r, et.c.).

j o a r


_______________________________________________

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