On Tue, Jun 3, 2008 at 5:41 AM, Hamish Allan <[EMAIL PROTECTED]> wrote:
> On Mon, Jun 2, 2008 at 10:30 PM, john darnell
> <[EMAIL PROTECTED]> wrote:
>
>> I just read Hillegass' chapter that introduces Key-Value coding.
>
>>  My question is, if this is such a necessary thing, why didn't the
>> designers simply design the compiler to auto-generate setter and getter
>> functions as per the requisite style in the first place?
>
> I haven't read Hillegaas' latest book, but perhaps in a less
> introductory chapter he will go on to talk about @synthesise, which
> does exactly what you're looking for.

Also even without @synthesize, KVC will work just fine with no
accessors present. The KVC implementation will happily extract the
value directly from your instance variable by using its name, or put a
new value into it.

Mike
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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

This email sent to [EMAIL PROTECTED]

Reply via email to