• 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
Subclassing NSManagedObject issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Subclassing NSManagedObject issue


  • Subject: Subclassing NSManagedObject issue
  • From: T Reaves <email@hidden>
  • Date: Sun, 22 May 2005 20:50:20 -0400

O.K., as per advice from people, I've subclassed NSManagedObject for my entities. My first step was to simply make the change to the model, and create the source files. As I've not added accessors & mutators, or other logic, these are just empty files that inherit the default behavior.

My understanding from the documentation and the sample code I looked at implies all I need do is what I've done. However, when I run my app (at this point I've no real data, so I deleted the XML data file), the object I've subclassed from NSManagedObject no longer works. When I try to add (via the array controller), I now get:

*** NSRunLoop ignoring exception 'Failed to create new object' that raised during posting of delayed perform with target 4916980 and selector 'invokeWithTarget:'

Once I've updated the class of my entity in the modeler, created the .h & .m files for the new objects, is there anything else? I've looked over the docs and the example code, and all seems in order...


_______________________________________________ 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: Subclassing NSManagedObject issue
      • From: Chris Hanson <email@hidden>
    • Re: Subclassing NSManagedObject issue
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Re: Subclassing NSManagedObject
  • Next by Date: Re: Subclassing NSManagedObject
  • Previous by thread: RE: "Reveal Drawer" button in title bars
  • Next by thread: Re: Subclassing NSManagedObject issue
  • Index(es):
    • Date
    • Thread