Re: NSScanner question
Re: NSScanner question
- Subject: Re: NSScanner question
- From: Michael Vannorsdel <email@hidden>
- Date: Wed, 23 Apr 2008 03:57:09 -0600
At first glance I'd say it's crashing because you're not checking if
scanUpToCharactersFromSet:intoString: was successful and trying to add
what may be an invalid object (foundStrings) to an array.
On Apr 23, 2008, at 3:46 AM, Jason Wiggins wrote:
I've been playing with NSScanner to cut a string eg: this is a
test " So is this"test
from a search field into its components. ie. extract the quoted text
to be placed into an array as well as the other components, pre and
post quoted text. The other components will eventually be split with
componentsSeparatedByString.
My issue is that if I paste the above text into the search field,
all is OK. But if I type in- "test
as a test case, it locks up and fails with The Debugger has exited
due to signal 11 (SIGSEGV).The Debugger has exited due to signal 11
(SIGSEGV).
_______________________________________________
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