• 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: subclass says "unrecognized selector"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >subclass says "unrecognized selector" (From: Mikkel Eide Eriksen <email@hidden>)
 >Re: subclass says "unrecognized selector" (From: Kyle Sluder <email@hidden>)
 >Re: subclass says "unrecognized selector" (From: Mikkel Eide Eriksen <email@hidden>)

  • Prev by Date: Re: subclass says "unrecognized selector"
  • Next by Date: Canceling NSInvocationOperation
  • Previous by thread: Re: subclass says "unrecognized selector"
  • Next by thread: Cocoa Application without any menu, dock, etc.
  • Index(es):
    • Date
    • Thread