Skip navigation.
 
mlUsing isMemberOfClass with a tree of subclass of NSManagedObject
FROM : Yoann GINI
DATE : Sat Jun 28 18:58:27 2008

Hi all,

   I've a CoreData base with some kind of object what are a subclass of 
an abstract class called "root" (root is a subclass of 
NSManagedObject). In a part of my code I need to catch all operation 
on object what are a child of root. For do that I use the notification 
NSManagedObjectContextObjectsDidChangeNotification and I would use 
"isMemberOfClass" method for test each objet. I don't know why but 
this method always return "NO" even of an object what are a chlid of 
root...

   Do you have an idea ?

Bests regards,
Yoann.