scannerWithString
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.