• 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
Re: scannerWithString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scannerWithString


  • Subject: Re: scannerWithString
  • From: Ondra Cada <email@hidden>
  • Date: Fri, 24 May 2002 20:57:22 +0200

On Friday, May 24, 2002, at 08:39 , Andreas Mayer wrote:

// Divvy the file contents (lines) into an array of NSstrings
using \n as separator

typeLines = [ typeContents componentsSeparatedByString:@"\n" ] ;

This will not work, if the lines are seperated by some other character(s)
than LF.

If they were, unix would not accept such config files anyway. Regardless what Unicode, Mac OS Classic, and Windows think, the line separator is still LF.
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
2K Development: email@hidden http://www.2kdevelopment.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
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: scannerWithString
      • From: Andreas Mayer <email@hidden>
References: 
 >Re: scannerWithString (From: Andreas Mayer <email@hidden>)

  • Prev by Date: Re: Accessor Madness
  • Next by Date: Re: scannerWithString
  • Previous by thread: Re: scannerWithString
  • Next by thread: Re: scannerWithString
  • Index(es):
    • Date
    • Thread