On Sat, Feb 12, 2011 at 12:37 PM, Mikkel Eide Eriksen <mikkel.erik...@gmail.com> wrote: > Thanks for the suggestion, but I should mention that it needs to be an > instance method since it gets the name of the plist from a userInfo > dictionary on its entity (SuperClass is a subclass of NSManagedObject). I > can't get the entity description in a class method (at least not in any way > that I've found). I suppose I could rely on always naming the class the same > as the entities and then attempt to grab the correct entity description that > way, but that seems less than ideal.
It doesn't look like there's a way to get an NSEntityDescription's class (or class name). So you would indeed be stuck naming the class the same as the entity description that uses it, and thus requiring a 1-to-1 correspondence between entity descriptions and NSManagedObject subclasses. --Kyle Sluder _______________________________________________ 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 arch...@mail-archive.com