Re: -[NSManagedObject objectID]: unrecognized selector sent to class
Re: -[NSManagedObject objectID]: unrecognized selector sent to class
- Subject: Re: -[NSManagedObject objectID]: unrecognized selector sent to class
- From: Joanna Carter <email@hidden>
- Date: Fri, 5 Mar 2010 07:34:11 +0000
Hi Matt
Le 4 mars 2010 à 19:32, Matt Bigarani a écrit :
> I'm experiencing some weirdness with NSManagedObject. Basic
> background, I have an NSManagedObject 'surveyGroup', which has a
> to-many relationship to another NSManagedObject, surveyResults.
>
> I'm attempting to access the surveyResults object in two different
> methods. It works fine in the first method, but in the second method I
> get the error:
>
> "-[NSManagedObject objectID]: unrecognized selector sent to class"
If that is the exact code that is being quoted, then the problem is that you are sending the objectID message to the NSManagedObject class, not to an instance of the class.
Joanna
--
Joanna Carter
Carter Consulting
_______________________________________________
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