Re: Cocoa says not KVC compliant
Re: Cocoa says not KVC compliant
- Subject: Re: Cocoa says not KVC compliant
- From: mmalc crawford <email@hidden>
- Date: Wed, 02 Jul 2008 14:04:55 -0700
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
_______________________________________________
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