• 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: Are NSScanners deprecated?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Are NSScanners deprecated? (From: Nicola Vitacolonna <email@hidden>)

  • Prev by Date: Re: Drawing text?
  • Next by Date: Developers needed to complete the GNUstep port to Darwin
  • Previous by thread: Are NSScanners deprecated?
  • Next by thread: Re: Are NSScanners deprecated?
  • Index(es):
    • Date
    • Thread