I am having an issue with core data many to many relationship. I have two entity Menus <<---->> Categories. I can insert data on both the entities. But when I tried to establish a relationship between them, I used this code:
[menu addToCategoriesObject:catagory];
And it crashes with the following error :
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSDictionaryI addToCategoriesObject:]: unrecognized selector sent to instance 0x8fca680'
Your help is appreciated. Also, if there is any good tutorial on Core Data many to many relationship, please share it.
Thanks.