CFKevinRef / KCOrderedAccessorFix

Fixes "CoreDataGeneratedAccessors" for ordered, to-many relationships.
95 stars 15 forks source link

add<myMultipleRelationship>Object: doesn't handle nil argument #6

Closed colasbd closed 10 years ago

colasbd commented 11 years ago

Thank you !

CFKevinRef commented 11 years ago

What's the expected behavior here? I believe both the auto-generated version from Core Data and the analogous addObject: methods will throw an exception.

Maybe a better implementation would be to check for nil first, then throw an exception ourselves?

colasbd commented 11 years ago

Thanks for your reply.

I didn't know that it was the normal behavior. I thought when you add nil, it didn't change the value of the relationship.

Thanks Colas