[NEWBIE] Core Data - custom accessor does not work
[NEWBIE] Core Data - custom accessor does not work
- Subject: [NEWBIE] Core Data - custom accessor does not work
- From: Michael Ströck <email@hidden>
- Date: Sat, 6 Aug 2005 00:55:05 +0200
Hi!
I have a Core Data application with an entity called Split. Modelling
was done graphically, I then wrote custom methods to set and get
values, which I put into Split.h and Split.m.
I create a new NSManagedObject like this:
NSManagedObject *mySplit = [NSEntityDescription
insertNewObjectForEntityForName:@"Split"
inManagedObjectContext:managedObjectContext];
and try to do:
[mySplit setRatio: theRatio];
I get this when running the progam:
" 2005-08-06 00:44:51.233 Prices[2556] *** -[NSManagedObject
setNameOfEntity:]: selector not recognized [self = 0x30e340] "
I also get the comiler warning: " 'Split' may not respond to '-
setRatio:' " , although it's definitely implemented in Split.h.
Can anybody give me pointers as to what might be going on? What am I
not understanding?
Regards,
Michael Ströck _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden