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

[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
  • Follow-Ups:
    • Re: [NEWBIE] Core Data - custom accessor does not work
      • From: mmalcolm crawford <email@hidden>
    • Re: [NEWBIE] Core Data - custom accessor does not work
      • From: Chris Hanson <email@hidden>
  • Prev by Date: Re: Hiding the disclosure triangle in NSOutlineView
  • Next by Date: Re: Is there a way to "globally" #define some value as if it were in some main header file?
  • Previous by thread: Re: Fullscreen window after hiding Dock works in 10.4 but not 10. 3
  • Next by thread: Re: [NEWBIE] Core Data - custom accessor does not work
  • Index(es):
    • Date
    • Thread