• 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: [NEWBIE] Core Data - custom accessor does not work
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [NEWBIE] Core Data - custom accessor does not work


  • Subject: Re: [NEWBIE] Core Data - custom accessor does not work
  • From: mmalcolm crawford <email@hidden>
  • Date: Fri, 5 Aug 2005 17:32:03 -0700


On Aug 5, 2005, at 3:55 PM, Michael Ströck wrote:

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.

You have probably misspelled the name of the custom class in the model.

mmalc

_______________________________________________
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


References: 
 >[NEWBIE] Core Data - custom accessor does not work (From: Michael Ströck <email@hidden>)

  • Prev by Date: Re: How to store a file in Core Data
  • Next by Date: Re: <relationship fault: 0x4ee6830 ...>
  • Previous by thread: Re: [NEWBIE] Core Data - custom accessor does not work
  • Next by thread: Need help with a nasty memory management problem
  • Index(es):
    • Date
    • Thread