Skip navigation.
 
mlRe: Cocoa says not KVC compliant
FROM : mmalc crawford
DATE : Wed Jul 02 23:04:55 2008

On Jul 2, 2008, at 12:26 PM, Alex Wait wrote:

> if you have the @property statement, and you use the I think 
> @synthesize
> (could be wrong about that) you don't need to write the functions 
> yourself.
>


<http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/Articles/chapter_5_section_3.html#//apple_ref/doc/uid/TP30001163-CH17-SW9
> ("Property Implementation Directives").
Then see also:
<http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/Articles/chapter_5_section_3.html#//apple_ref/doc/uid/TP30001163-CH17-SW10
> ("Core Foundation").


> Try taking out the @property statement.
>

This just doesn't make sense.
(a) Properties are orthogonal to KVC:
<http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/Articles/chapter_5_section_5.html#//apple_ref/doc/uid/TP30001163-CH17-SW6
>.
(b) Declaring properties is considered to be best practice precisely 
because they make the semantics of access clear -- there's no reason 
at all to remove the declaration.

Chris and Nathan have addressed the original question.

mmalc

Related mailsAuthorDate
mlCocoa says not KVC compliant Milen Dzhumerov Jul 2, 19:13
mlRe: Cocoa says not KVC compliant Alex Wait Jul 2, 21:26
mlRe: Cocoa says not KVC compliant Nathan Vander Wilt Jul 2, 22:33
mlRe: Cocoa says not KVC compliant Chris Suter Jul 2, 22:34
mlRe: Cocoa says not KVC compliant mmalc crawford Jul 2, 23:04