• 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
Dealing with Mac/Unix/Windows line breaks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Dealing with Mac/Unix/Windows line breaks
      • From: Dustin Voss <email@hidden>
  • Prev by Date: Re: beginning C part 2 [OT]
  • Next by Date: Trying to pre-populate NSTextFields, getting SIGBUS/SIGSEGV
  • Previous by thread: Re: First slow, then fast
  • Next by thread: Re: Dealing with Mac/Unix/Windows line breaks
  • Index(es):
    • Date
    • Thread