Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properties with repeated letters are lowercased #19

Closed
hermiteer opened this issue Mar 1, 2016 · 1 comment
Closed

Properties with repeated letters are lowercased #19

hermiteer opened this issue Mar 1, 2016 · 1 comment

Comments

@hermiteer
Copy link
Owner

When using the setObject method, if the setter's first letter (after set) is repeated somewhere else in the property name, all instances are lower cased. Only the first letter should be lower cased.

  • (void) setObject:(id)object forSetter:(SEL)setter
@hermiteer
Copy link
Owner Author

range = NSMakeRange(0, 1);
NSString* character = [[key substringToIndex:1] lowercaseString];
key = [key stringByReplacingCharactersInRange:range withString:character];

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant