• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Line endings and dataRepresentationOfType
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Line endings and dataRepresentationOfType
      • From: Dustin Voss <email@hidden>
  • Prev by Date: Getting printer information
  • Next by Date: Re: Restraining window movement + gridding
  • Previous by thread: Getting printer information
  • Next by thread: Re: Line endings and dataRepresentationOfType
  • Index(es):
    • Date
    • Thread