On May 6, 2009, at 7:08 PM, Daniel Child wrote:
I'm trying to catch whitespace between words with a scanner. For some
reason, the white space is not being recognized.
Am I missing something obvious or is there a bug here? Thanks.
NSScanner defaults to skipping whitespace and newlines.
Try adding the following after you declare your scanner but before you
scan:
[scanner setCharactersToBeSkipped:nil]; // don't skip
whitespace!!
See the documentation for this method in the NSScanner Class Reference.
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com