Core Data not returning a custom concrete class
Ever had a problem when you’re fetching something from an NSManagedObjectContext, and you’ve set a concrete class in your model, only to find that it is an NSManagedObject? Me too.
I read this post at StackOverflow, which suggested that you have to create the subclass using Xcode, from within the modeler. OK, I thought. I’ll try that.
I deleted my old .h and .m files. I went into the modeler. I created a new Managed Object class. And put my custom code back in.
And it didn’t work!
But never fear. I did a Clean, and it worked.
Member discussion