Re: Equivalent to the fscanf() C function in Cocoa?
Re: Equivalent to the fscanf() C function in Cocoa?
- Subject: Re: Equivalent to the fscanf() C function in Cocoa?
- From: "John C. Randolph" <email@hidden>
- Date: Thu, 22 Aug 2002 11:15:32 -0700
I'll just mention that if you need even more string-bashing power,
there's the MOKit from Mike Ferris, available at www.lorax.com. Among
other things, it includes a very powerful regex package.
-jcr
On Thursday, August 22, 2002, at 08:34 AM, email@hidden wrote:
Two easy ways come to mind:
Using the NSScanner Foundation class is one way. It is fairly
flexible, so
check the docs to see what it can do.
Also, check out the docs for NSString. The componentsSeparatedByString
method is another way to do what you are asking.
From: Arthur VIGAN <email@hidden>
Date: Thu, 22 Aug 2002 15:26:36 +0200
To: Cocoa Dev <email@hidden>
Subject: Equivalent to the fscanf() C function in Cocoa?
Hi,
Is there an equivalent to the C function fscanf() in the Cocoa
framework for
an NSString?
The "problem" is that my application generates strings containing int
values
separated by a space (for instance: "150 221 14 487 174") that I would
like
to put in an array.
Thanks in advance.
Arthur
_______________________________________________
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.
_______________________________________________
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.
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
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.