snej / MYUtilities

Objective-C Cocoa utility functions/methods I can't live without
Other
58 stars 21 forks source link

MYDynamicObject doesn't work with key names beginning with capitals. #5

Closed ndouglas closed 11 years ago

ndouglas commented 11 years ago

Hi Jens!

I think if you have a property e.g. "UUID", the code seems to try to make the setter "setuUID:", which of course doesn't work. I have a patch that fixes the issue but it's probably crap performance-wise and my head is killing me, so I won't be able to submit a pull request until tomorrow. And it's really a very minor thing.

ndouglas commented 11 years ago

Er, just realized I screwed up explaining this and did it backwards. Like I said, I had a headache. I meant that if you have a method -setUUID:, the key it looks for is uUID. Weirdly enough, my fix worked even though my words apparently didn't :-)