Handling OS specific line breaks
Handling OS specific line breaks
- Subject: Handling OS specific line breaks
- From: Varley Taylor <email@hidden>
- Date: Sun, 19 May 2002 14:43:44 -0700
I'm trying to figure out the best way to deal with OS specific text line
breaks in a cocoa document based application.
It appears that text views appropriately account for displaying various
flavors out there, e.g.:
Mac - \r (carriage return)
Unix - \n (new line)
DOS - \r\n (both)
However, editing within a text view seems to be a different story. It
appears that hitting the return key within a text view always inserts a
Unix style line break. The problem herein is that adding line breaks
within a text view that contains non-Unix line breaks leads to line
break type inconsistency. Perhaps I'm hallucinating... If not, does
anyone know the best way around this?
Thanks in advance for any advice,
-Varley
_______________________________________________
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.