gl_dev
gl_dev

Reputation: 13

What does the type class_class_* mean in xcode debugger?

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:

http://imageshack.com/a/img834/7918/wi8v.png

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

Answers (1)

Martin R
Martin R

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

Related Questions