I have a core data NSManagedObject named CD_CoffeeShop . When i allocated a variable
CD_CoffeeShop *temp_CS = [ CD_CoffeeShop new]
and try to pass a value to it,
[temp_CS setCoffeeShopId:[NSNumber numberWithInt:coffeeShop.Id]];
(the variable coffeeShopId of temp_CS is a NSNumber)
i get an error that says :
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[CD_CoffeeShop setCoffeeShopId:]: unrecognized selector sent to instance 0x6b34040'
What can it be ?
setCoffeeShopIdin the .h file? - MByDcoffeeShopIdsynthesize? - MByD