Can't agree here, I have used NSScanner to parse quite a few even complex file formats, and NSScanner was a pretty convenient (and fast!) solution for these cases.
Gerd On Mar 19, 2013, at 8:37 PM, Jens Alfke <j...@mooseyard.com> wrote: > > On Mar 19, 2013, at 4:37 PM, Graham Cox <graham....@bigpond.com> wrote: > >> I don't find NSScanner all that useful for searching for specific strings in >> a stream. > > Agreed. There is a very narrow range of use cases for NSScanner — simple > searches can be done with NS[Mutable]String directly, and more sophisticated > ones tend to require (or be easier with) NSRegularExpression. I’ve only ended > up using NSScanner a handful of times, ever. > > —Jens > _______________________________________________ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or moderator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/gerti-cocoadev%40bitart.com > > This email sent to gerti-cocoa...@bitart.com _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com