Line endings and dataRepresentationOfType
Line endings and dataRepresentationOfType
- Subject: Line endings and dataRepresentationOfType
- From: Chaffinch <email@hidden>
- Date: Thu, 16 Oct 2003 10:36:28 +0100 (BST)
Hi,
I am fairly new to Cocoa, and this is only my seconf app.
I have implemented dataRepresentationOfType to save my document and that all
works fine. But I now want to be able to save using DOS (x0a, x0d) line
breaks. So I insert these into my document in the appropriate places and pass
the resulting string to dataRepresentationOfType for saving.
But the resulting file still contains only the single x0d line break
character. Is dataRepresentationOfType stripping the extra x0a character out
somewhere??
How can I save with DOS line endings, do I need to use the
writeToFile/readFromFile methods?
Thank you
=====
Regards
Chaffinch
----------------------------------------------
________________________________________________________________________
Want to chat instantly with your online friends? Get the FREE Yahoo!
Messenger
http://mail.messenger.yahoo.co.uk
_______________________________________________
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.