NSScanner Behavior
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.