Dealing with Mac/Unix/Windows line breaks
Dealing with Mac/Unix/Windows line breaks
- Subject: Dealing with Mac/Unix/Windows line breaks
- From: Francisco Tolmasky <email@hidden>
- Date: Sun, 3 Aug 2003 16:59:22 -0700
In a document that accepts copies from different sources, how should
you deal with line breaks. For example, let's say you have a text view
with macintosh line breaks. Someone hits copy from a document with
unix line breaks, and then pastes to you text view. Do you now have a
mixed format string in the text view? Do you have to intercept the
string and convert the line breaks? Is there an easy way to do so,
like [string stringWithLineBreaks: Mac]?
Francisco Tolmasky
email@hidden
http://users.adelphia.net/~ftolmasky
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.