I agree with you guys as well about the limits of NSScanner. In this case it is a fairly simple extraction of a few substrings for a short string, and it works just fine with the NSScanner.
- Koen. On Mar 19, 2013, at 9: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/archive%40mail-archive.com This email sent to arch...@mail-archive.com