On Apr 22, 2009, at 8:09 AM, Michael Ash wrote:

Do your files have regularly occurring newlines like most normal text
files? If so, then you can just scan for a \r or \n and break it up
there. Virtually every encoding you'll encounter today encodes \r and
\n as \r and \n, and will not use those bytes for anything else.

You know what... I should have thought of that. :-)

I remembered we all talked about something very similar on a previous thread and I now I remember that I even brought up this same idea since I'm doing it elsewhere in this same app, but I totally didn't even think of it this time.

Heh. Well shoot. Nevermind. :-)


Thanks,

--
Seth Willits



_______________________________________________

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 arch...@mail-archive.com

Reply via email to