Michael Tyson - 2008-07-13

Logged In: YES
user_id=662514
Originator: NO

I just want to confirm this - and it's not just RKEnumerator. Seems to happen on at least NSString's stringByMatching:replace:withReferenceString, and probably everything else.

For example...

[@"!@#$Test string" stringByMatching:@"^[^A-Z]*" replace:RKReplaceAll withReferenceString:@""]

gives:

"Test string"

However,

[@"Test string" stringByMatching:@"^[^A-Z]*" replace:RKReplaceAll withReferenceString:@""]

Will freeze up forever.

See http://michael.tyson.id.au/RKFreezeTest.zip for a test project - Run it, press 'Run' and all is well; remove the four non-alpha chars from the test string, hit run again, and the app freezes.

Nasty stuff.