On Mon, Sep 22, 2008 at 1:15 AM, Britt Durbrow <[EMAIL PROTECTED]> wrote: > I'm getting some really odd behavior out of NSScanner; it seems to be > choking on character sets that only have whitespace in them.
Your problem is that you need to set the characters to be skipped to something other than what you are trying to scan. <file://localhost/Developer/Documentation/DocSets/com.apple.ADC_Reference_Library.CoreReference.docset/Contents/Resources/Documents/documentation/Cocoa/Reference/Foundation/Classes/NSScanner_Class/Reference/Reference.html#//apple_ref/doc/uid/20000159-setCharactersToBeSkipped_> I can't remember if nil works, or you need [NSCharacterSet characterSetWithCharactersInString:@""]. But one of those two will work :) _______________________________________________ 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 [EMAIL PROTECTED]