Simon Schoelly
2004.09.24, 07:25 AM
I have a NSScanner
NSScanner *scanner = [NSScanner scannerWithString:fileContents];
but when I want to release it width [scanner release] crashes. And the same thing happens with [scanner dealloc].
Now I have a NSString
NSString *stringBuffer;
[scanner scanString:@"EDGES" intoString:&stringBuffer];
This object also can't be released nor dealloced. Why? And is there a method to get the retain count of an object at runtime?
NSScanner *scanner = [NSScanner scannerWithString:fileContents];
but when I want to release it width [scanner release] crashes. And the same thing happens with [scanner dealloc].
Now I have a NSString
NSString *stringBuffer;
[scanner scanString:@"EDGES" intoString:&stringBuffer];
This object also can't be released nor dealloced. Why? And is there a method to get the retain count of an object at runtime?