Re: Core Data reserved property names?
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