SquidCombo Posted June 18, 2008 Share Posted June 18, 2008 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? Link to comment Share on other sites More sharing options...
stroke Posted June 18, 2008 Share Posted June 18, 2008 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:. Link to comment Share on other sites More sharing options...
Recommended Posts