• 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: How to create subentity object inheriting from superentity object in core data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to create subentity object inheriting from superentity object in core data


  • Subject: Re: How to create subentity object inheriting from superentity object in core data
  • From: Kyle Sluder <email@hidden>
  • Date: Wed, 16 Sep 2009 11:02:37 -0700

On Wed, Sep 16, 2009 at 10:53 AM, Leon Starr <email@hidden> wrote:
> A is not abstract, so if I create an A NSManagedObject, I need to create and
> relate a single B or C subclass object. How do I make this happen? I can
> create the entities, but HOW do I tell the model that object B is a subclass
> of object A (or vice versa?)

You don't need to tell it anything.  Core Data knows that every B isa A.

--Kyle Sluder
_______________________________________________

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

  • Follow-Ups:
    • Re: How to create subentity object inheriting from superentity object in core data
      • From: Leon Starr <email@hidden>
References: 
 >How to create subentity object inheriting from superentity object in core data (From: Leon Starr <email@hidden>)

  • Prev by Date: Re: [myNSWindow setDocumentEdited:dirtyB] fail ??
  • Next by Date: Re: Binding a model's ivar array to the contents of an NSArrayController
  • Previous by thread: How to create subentity object inheriting from superentity object in core data
  • Next by thread: Re: How to create subentity object inheriting from superentity object in core data
  • Index(es):
    • Date
    • Thread