Re: Are NSScanners deprecated?
Re: Are NSScanners deprecated?
- Subject: Re: Are NSScanners deprecated?
- From: Bill Cheeseman <email@hidden>
- Date: Tue, 09 Jul 2002 05:22:57 -0400
on 02-07-09 4:27 AM, Nicola Vitacolonna at email@hidden wrote:
>
According to Apple's documentation (Programming Topics: Strings),
>
NSScanners are deprecated. They suggest using NSFormatters instead. Is
>
it really so? I think NSScanners and NSFormatters serve two different
>
purposes. E.g., how can I use an NSFormatter to parse a string, say, to
>
discard spaces and newlines (or whatever parsing process you like)?
Apple engineering managers have said here more than once that scanners are
NOT deprecated. I don't know why that line still appears in the
documentation. I think the current intent is that scanners are particularly
useful for writing formatters, and that otherwise formatters are probably
more useful than scanners for many applications.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
Croquet Club of Vermont -
http://members.valley.net/croquetvermont
_______________________________________________
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.