Re: subclass says "unrecognized selector"
Re: subclass says "unrecognized selector"
- Subject: Re: subclass says "unrecognized selector"
- From: Kyle Sluder <email@hidden>
- Date: Sat, 12 Feb 2011 13:18:39 -0800
On Sat, Feb 12, 2011 at 12:37 PM, Mikkel Eide Eriksen
<email@hidden> 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 (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