Re: NSScanner question
Re: NSScanner question
- Subject: Re: NSScanner question
- From: Gerd Knops <email@hidden>
- Date: Wed, 20 Mar 2013 08:53:52 -0500
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 <email@hidden> wrote:
>
> On Mar 19, 2013, at 4:37 PM, Graham Cox <email@hidden> 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 (email@hidden)
>
> 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:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden