Answer for the other mail (from Bill) : Yes, my objectsSet contain my object, and when I display the class type of this object in a NSLog I obtain the good thing (artist, song, modification).

Sorry for the conventions, this is just a "test code"...

root is the name of the class used for the entity and for the class represent the entity (that is the default behaviour when you create a new class for custom a existing entity in a .xcdatamodel)

The entity root is an abstract class what contain the common attributes, song and artist inherit from the root entity

Le 28 juin 08 à 20:15, mmalc crawford a écrit :


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-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to