What exactly is a no-parameter method name?
Posted
by mystify
on Stack Overflow
See other posts from Stack Overflow
or by mystify
Published on 2010-06-06T15:34:50Z
Indexed on
2010/06/06
15:42 UTC
Read the original article
Hit count: 313
From the Core Data docs:
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”
Ok, so -description is blocked for property names. I guess it's because of KVC. But what exactly does "no-parameter" mean? Is that any method which does not take a parameter?
So in other words:
- Any property of NSObject or NSManagedObject
- ANY method name of NSObject or NSManagedObject, which does not take a parameter
Did I get that right?
© Stack Overflow or respective owner