• 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 reserved property names?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data reserved property names?


  • Subject: Re: Core Data reserved property names?
  • From: Florent Pillet <email@hidden>
  • Date: Mon, 05 Nov 2007 18:06:35 +0100

You're right as usual.

I had searched the documentation for a conflicting readOnly or isReadOnly or setReadOnly method but hadn't noticed this bit in the NSPropertyDescription documentation. That's good advice.

Thanks,
Florent

mmalc crawford wrote:

On Nov 5, 2007, at 8:43 AM, Florent Pillet wrote:

Soo .. my question is: how many of these non-obvious reserved names are hidden in Core Data? I say non-obvious because I had to class-dump CoreData.framework to find some hidden _setReadOnly method in NSManagedObject. Should I file a bug requesting better documentation for this?

"Note that a property name cannot be the same as any no-parameter method name of NSObject or NSManagedObject. For example, you cannot give a property the name "description". There are hundreds of methods on NSObject which may conflict with property names—and this list can grow without warning from frameworks or other libraries. You should avoid very general words (like "font”, and “color”) and words or phrases which overlap with Cocoa paradigms (such as “isEditing” and “objectSpecifier”)."

<http://developer.apple.com/documentation/Cocoa/Reference/CoreDataFramework/Classes/NSPropertyDescription_Class/Reference/NSPropertyDescription.html>


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: 
 >Core Data reserved property names? (From: Florent Pillet <email@hidden>)
 >Re: Core Data reserved property names? (From: mmalc crawford <email@hidden>)

  • Prev by Date: Using .Mac iDisk for subversion (svn) repository?
  • Next by Date: Re: Using .Mac iDisk for subversion (svn) repository?
  • Previous by thread: Re: Core Data reserved property names?
  • Next by thread: Unable to add classes to IB 3.0
  • Index(es):
    • Date
    • Thread