• 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: core data subentities
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

re: core data subentities


  • Subject: re: core data subentities
  • From: mmalc crawford <email@hidden>
  • Date: Sat, 12 Jan 2008 13:06:42 -0800

Please try to keep the subject line constant -- it makes threading easier...

On Jan 12, 2008, at 12:32 PM, Daniel Child wrote:

Thank you.

You say that its "one managed object with the union of properties." But if you want to set values via KVC, then are the items referenced as:

Super.fieldOne
Super.fieldTwo
SubOne.fieldOne
etc.
for data imported from a file of SubOne records, and

Super.fieldOne
Super.fieldTwo
SubTwo.fieldOne
SubTwo.fieldTwo
etc.
for data imported from a file of SubTwo records?

No. It's not clear why you would think this.
As stated earlier, "Entity inheritance is like class inheritance" and "The relationship is analogous to a class and its ivars".


If you have:

@interface Super : NSObject
{
	NSString *fieldOne;
}
@end

@interface Super : SubOne
{
	NSString *fieldTwo;
}
@end

then how do you access fieldOne in an instance of SubOne?

mmalc

_______________________________________________

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: Cocoa-dev Digest, Vol 5, Issue 44 (From: Daniel Child <email@hidden>)

  • Prev by Date: Re: Reporting Bugs in Apple Sample Code (NSOutlineView, NSTreeController and Bindings)
  • Next by Date: re: core data subentities
  • Previous by thread: Re: Cocoa-dev Digest, Vol 5, Issue 44
  • Next by thread: re: core data subentities
  • Index(es):
    • Date
    • Thread