On Sep 10, 2012, at 19:27 , Charles Srstka <[email protected]> wrote:

> On Sep 10, 2012, at 9:23 PM, Quincey Morris 
> <[email protected]> wrote:
> 
>> It doesn't need "all the extra scaffolding". KVC will peer quite happily 
>> into your instance variables by default. What you don't get for free, in 
>> that case, is KVO compliance for the property. The purpose of providing 
>> explicit accessors is therefore twofold:
>> 
>> 1. It avoids letting KVC introspect your ivars, which is a horrible hack.
>> 
>> 2. It gives you automatic KVO compliance.
> 
> With that said, writing these accessors *is* rather mechanical and 
> repetitive, and it would be nice if @synthesize could create the appropriate 
> accessors in this case.

I think the reason I keep screwing this up is because intuitively, it should 
just work (perhaps with lower performance, and only for the "obvious" pattern).

-- 
Rick




_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to