Reputation: 13
I was testing if an object belonged to a certain class with kiwi, and while debugging, i found that the object was of a weird kind of class:
Does anyone know what that means?
I'm using magical record to create a core data instance of the object and mogenerator to create the managed object subclass.
Thanks in advance.
Upvotes: 1
Views: 92
Reputation: 539915
As explained in the answer to Why is the +initialize method of Core Data managed objects being called twice?, the Core Data framework
automatically creates subclasses of your NSManagedObject
subclass to implement the
accessor methods at runtime. In your case, Service_Service_
is a subclass of Service
,
created at runtime.
To check if an object is of a certain class, use isKindOfClass
:
[service isKindOfClass:[Service class]]
which returns YES
also for instances of subclasses.
Upvotes: 2