• 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: Quincey Morris <email@hidden>
  • Date: Wed, 16 Sep 2009 21:10:40 -0700

On Sep 16, 2009, at 18:38, Leon Starr wrote:

To get this to work, without KVC, I need to declare @property/ @dynamic for license in Auto, Sedan and Truck. (Can't just put it in Auto and expect Sedan.license to work). No big deal unless I have a bunch of common properties in the parent entity.

No, you don't have to redeclare the properties in the subclasses. They're inherited normally. Remember that the entity inheritance chain and the Objective-C inheritance chain are orthogonal -- they coincide only to the extent you ensure they coincide.



_______________________________________________

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


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

  • Prev by Date: Re: #pragma to suppress a warning message
  • Next by Date: Document Attributes into Pdf
  • Previous by thread: Re: How to create subentity object inheriting from superentity object in core data
  • Next by thread: Core data - how to set string min max programmatically?
  • Index(es):
    • Date
    • Thread