• 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: NSScanner question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSScanner question
      • From: Jason Wiggins <email@hidden>
References: 
 >NSScanner question (From: Jason Wiggins <email@hidden>)

  • Prev by Date: NSScanner question
  • Next by Date: Re: How to retain Previous content view in cocoa
  • Previous by thread: NSScanner question
  • Next by thread: Re: NSScanner question
  • Index(es):
    • Date
    • Thread