Print
PDF
Dec
06

[NSManagedObject xxxx]: unrecognized selector sent to instance

I mention this in my blog because it has happened to me two times. And each time I forgot what was the cause. If you get this error message in Xcode:


[NSManagedObject xxxx]: unrecognized selector sent to instance xxxx


It is probably because you forgot to associate the class used by your entity in your core data model. By default is it set to NSManagedObject. 



okcompute