• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Arghh bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Arghh bindings


  • Subject: Re: Arghh bindings
  • From: Marcel Weiher <email@hidden>
  • Date: Fri, 14 Sep 2012 07:46:33 +0200



On Sep 11, 2012, at 4:28 , Charles Srstka <email@hidden> wrote:

> On Sep 10, 2012, at 9:23 PM, Quincey Morris <email@hidden> 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.

Or maybe synthesizing accessors should not baked into language, but rather part of (user-extensible) libraries.

Just a thought,

Marcel


_______________________________________________

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

References: 
 >Arghh bindings (From: Rick Mann <email@hidden>)
 >Re: Arghh bindings (From: Graham Cox <email@hidden>)
 >Re: Arghh bindings (From: Rick Mann <email@hidden>)
 >Re: Arghh bindings (From: Quincey Morris <email@hidden>)
 >Re: Arghh bindings (From: Charles Srstka <email@hidden>)

  • Prev by Date: Re: kABHomeLabel … and companions
  • Next by Date: Re: Hints for supporting dragging a file onto the dock icon, then onto a row in menu presented at that point?
  • Previous by thread: Re: Arghh bindings
  • Next by thread: Re: Arghh bindings
  • Index(es):
    • Date
    • Thread