Help - Search - Members - Calendar
Full Version: NSString from unsigned char and signed char
InsanelyMac Forum > Apple World > Mac Programming and Development
SquidCombo
Hi Guys,

Thanks in advance for your time. I have this NSString build from unsigned char using NSString's stringWithFormat. When I compare this string using isEqual:@"someStringValue", it doesn't return YES even though when I outputted the value using NSLog they give the same string. Is it because of the signness of the NSString? How do I convert unsigned char to signed NSString?
stroke
isEqual: is used to compare two objects, and if they are the same thing (eg, same memory address) then it will return YES. You're looking for isEqualToString:.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.