Hey. I am reading in a string from a file and attempting to use the resulting string to set a BOOL property on an object using the KVC method -setValue:forKeyPath:
-setValue:forKeyPath:
Add a simple category to your project:
@implementation NSString (CharValue) - (BOOL)charValue { return [self isEqualToString:@"0"] ? NO : YES; } @end