FROM : mmalc crawford
DATE : Sat Jun 28 20:15:03 2008
On Jun 28, 2008, at 11:07 AM, Yoann GINI wrote:
> @interface root : NSManagedObject
> @interface song : root
> @interface artist : root
> @interface modification : NSManagedObject
> This doesn't work with isKindOfEntity, used like that :
> NSEntityDescription* rootDescription = [[NSEntityDescription
> entityForName:@"root" inManagedObjectContext:[self
> managedObjectContext]] retain];
> ...
> [rootDescription isKindOfEntity:[modEntry entity]]
> It's always return NO...
Is "root" the name of the *entity* or of the *class* used to represent
the entity?
Whichever, it's helpful if you adhere to standard naming conventions
by capitalising the names of both.
If the entity name is "root", then do the "song" and "artist" entities
inherit from that entity?
mmalc
DATE : Sat Jun 28 20:15:03 2008
On Jun 28, 2008, at 11:07 AM, Yoann GINI wrote:
> @interface root : NSManagedObject
> @interface song : root
> @interface artist : root
> @interface modification : NSManagedObject
> This doesn't work with isKindOfEntity, used like that :
> NSEntityDescription* rootDescription = [[NSEntityDescription
> entityForName:@"root" inManagedObjectContext:[self
> managedObjectContext]] retain];
> ...
> [rootDescription isKindOfEntity:[modEntry entity]]
> It's always return NO...
Is "root" the name of the *entity* or of the *class* used to represent
the entity?
Whichever, it's helpful if you adhere to standard naming conventions
by capitalising the names of both.
If the entity name is "root", then do the "song" and "artist" entities
inherit from that entity?
mmalc






Cocoa mail archive

