• 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
Core Data - use of simple accessors vs. KVC
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Core Data - use of simple accessors vs. KVC


  • Subject: Core Data - use of simple accessors vs. KVC
  • From: "Oleg Krupnov" <email@hidden>
  • Date: Wed, 27 Aug 2008 19:22:44 +0300

A simple newbie question:

Suppose I have a Core Data model object MyObject with property myProp
defined in the model editor's schema.

Can I use the simple accessors like this:

[myObj myProp]
[myObj setMyProp]

or am I forced to use the rather clunky valueForKey/setVakyeForKey messages?

I thought that Core Data kind of auto-generates these standard
accessors for me and I don't have to write any manual code (if I don't
want anything special). However I've just got the compiler warning
that "MyObhect may not respond to '-myProp'"

Was I wrong or am I doing something wrong?
_______________________________________________

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: Core Data - use of simple accessors vs. KVC
      • From: Negm-Awad Amin <email@hidden>
    • Re: Core Data - use of simple accessors vs. KVC
      • From: Negm-Awad Amin <email@hidden>
  • Prev by Date: Re: Crash in garbage collection, NSOpenPanel
  • Next by Date: Re: CoreData, SQLite and GUID
  • Previous by thread: Re: Crash in garbage collection, NSOpenPanel
  • Next by thread: Re: Core Data - use of simple accessors vs. KVC
  • Index(es):
    • Date
    • Thread