• 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
Xcode's New Data Model reads ivars as attributes ?!?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Xcode's New Data Model reads ivars as attributes ?!?


  • Subject: Xcode's New Data Model reads ivars as attributes ?!?
  • From: Jerry Krinock <email@hidden>
  • Date: Sat, 8 Nov 2008 17:53:30 -0800

One of the pillars of my understanding of Core Data, I thought, was that, in a managed object, instance variables are not attributes and attributes are not instance variables.

Well, I just created a new Data Model from scratch in Xcode 3.1, for the first time. I was rather surprised when it asked me to choose classes to put in the model. I just wanted an empty model. Out of curiosity, I chose a class which was not an NSManagedObject subclass, but one that I was thinking of "converting" to be an NSManagedObject subclass. To my surprise, however, the model it created included an entity of my selected class, and five of its six instance variables are now its attributes.

Surely this will not work. Is the assumption that indeed I did intend to "convert" this to an NSManagedObject, and that I would be manually deleting the instance variables?

Jerry

_______________________________________________

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: Xcode's New Data Model reads ivars as attributes ?!?
      • From: Chris Hanson <email@hidden>
  • Prev by Date: MVC Question . . .
  • Next by Date: Core Data entity fetching by date
  • Previous by thread: Re: MVC Question . . .
  • Next by thread: Re: Xcode's New Data Model reads ivars as attributes ?!?
  • Index(es):
    • Date
    • Thread