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:. However, this breaks with an exception: -[NSCFString charValue]: unrecognized selector sent to instance 0x7fff711023b0. I’m guessing this is because BOOL is typedef’d from char. Is there a way around this? Thanks!
Hey. I am reading in a string from a file and attempting to use
Share
I am catching the exception, checking it’s name, and then retrying with a wrapped value when needed. Here is the code:
Thanks anyway!