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

scannerWithString


  • Subject: scannerWithString
  • From: Frank Blome <email@hidden>
  • Date: Fri, 24 May 2002 12:47:31 +0200

Hello together,

I just started my first cocoa development project. I want to write a tool for editing UNIX configuration files. Most of the parts and functions I need are pretty clear, because this great Cocoa framework, but please allow me one question:

I load the current configuration file while awake(ing) from nib;

NSString *contents = [[NSString alloc] initWithContentsOfFile:configFile];

After that, I figured out that "scannerWithString" might be the solution for finding linefeeds (\n) in the configuration file and after that, put every single line it into a NSMutableArray for further handling.

Is this the right approach? Or will there be a better way?

Thanks for help,
Frank
_______________________________________________
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>
  • Prev by Date: Re: cocoa-dev digest, Vol 2 #682 - 12 msgs
  • Next by Date: Re: NSTableView sorting by columns (newbie)
  • Previous by thread: Re: cocoa-dev digest, Vol 2 #682 - 12 msgs
  • Next by thread: Re: scannerWithString
  • Index(es):
    • Date
    • Thread