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

NSScanner Behavior


  • Subject: NSScanner Behavior
  • From: Zach Paine <email@hidden>
  • Date: Sun, 13 Jun 2004 14:02:28 -0400

I'm having an odd issue w/ NSScanner. Basically, I scan up to a
string, and then try to just skip over it once found. However, the
scanner doesn't scan over the expected string. Basically the code
looks like this:

[scanner scanUpToString:cronThingWarning intoString:&existingCrontab];
[scanner scanString:cronThingWarning intoString:nil];

I know that the string is in the document, and existingCrontab contains
all of text before the specified string, but the second line doesn't
appear to scan the string. Why would this happen?

-Zach
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: NSScanner Behavior
      • From: "Louis C. Sacha" <email@hidden>
  • Prev by Date: [OT] [ANN] AntsWorld binary distribution
  • Next by Date: Secure NSString?
  • Previous by thread: [OT] [ANN] AntsWorld binary distribution
  • Next by thread: Re: NSScanner Behavior
  • Index(es):
    • Date
    • Thread