• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Using isMemberOfClass with a tree of subclass of NSManagedObject
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using isMemberOfClass with a tree of subclass of NSManagedObject


  • Subject: Re: Using isMemberOfClass with a tree of subclass of NSManagedObject
  • From: mmalc crawford <email@hidden>
  • Date: Sat, 28 Jun 2008 11:15:03 -0700


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 (email@hidden)

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Using isMemberOfClass with a tree of subclass of NSManagedObject
      • From: Yoann GINI <email@hidden>
References: 
 >Using isMemberOfClass with a tree of subclass of NSManagedObject (From: Yoann GINI <email@hidden>)
 >Re: Using isMemberOfClass with a tree of subclass of NSManagedObject (From: mmalc crawford <email@hidden>)
 >Re: Using isMemberOfClass with a tree of subclass of NSManagedObject (From: Yoann GINI <email@hidden>)

  • Prev by Date: Re: [SOLVED] noob question regarding proxy object returned by -selection method of NSArrayController
  • Next by Date: Re: trackmouse problems in Leopard
  • Previous by thread: Re: Using isMemberOfClass with a tree of subclass of NSManagedObject
  • Next by thread: Re: Using isMemberOfClass with a tree of subclass of NSManagedObject
  • Index(es):
    • Date
    • Thread