NOTE :: GC Enabled

I am using an NSScanner in an NSString category but am crashing whenever I try 
to log the string I scanned into or to return it. If I comment out the NSLog 
there are no problems.

NSString *theScannedString;
NSScanner *theScanner = [NSScanner scannerWithString:theNewHTML];
NSCharacterSet *theCharacterSet = [NSCharacterSet 
characterSetWithCharactersInString:@"1234567890abcdefghijklmnopqrstuvwxyz...@#$%^&*()-_=+<>?,./:\";'[]\{}|
 "];
[theScanner scanCharactersFromSet:theCharacterSet intoString:&theScannedString];
        
NSLog(@"%@",theScannedString);

Does anyone have a hint as to what may be the issue?

Thanks

--chris_______________________________________________

Cocoa-dev mailing list ([email protected])

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]

Reply via email to