I am on Mac OS X and Xcode 4.5.2 while executing these lines:
NSString *asSrcFileName = @"chromebar.png" NSString *asSrcExtName = @".png" NSString *asTempName = [asSrcFileName stringByReplacingOccurrencesOfString:asSrcExtName withString:@""];
I get a weird look at my variables in the debugger. See Rectangle:
I expected asTmp to be @ "chromebar" after the third line. I used stringByReplacingOccurrencesOfString quite often and I donβt know what is wrong. Somehow it seems that there is a problem with Unicode.
Anyone to shed light on me?
source share