failing to get property name correctly?
gbuela-globant opened this issue · comments
I tried it on an existing app and at first it was crashing with [__NSCFConstantString charValue]: unrecognized selector sent to instance...
Trying to track it down I saw that the property names were obtained incorrectly, as this line was dropping the last character:
propertyName = [propertyName substringToIndex:[propertyName length] - 1];
I commented it out, and so far the app is working.
I'm sure you must have done that for a reason! but here I have verified that before executing that line, propertyName already has the correct value.
Thanks for the notification. You're correct, that line should not have been there. It should have been removed when the 'propertyNameFromSetter:' method was added.
This has been fixed in the repository sources now.