Re: KVO Oddity
Re: KVO Oddity
- Subject: Re: KVO Oddity
- From: Allan Odgaard <email@hidden>
- Date: Sat, 15 May 2004 01:13:07 +0200
On 15. May 2004, at 0:09, Christopher Pavicich wrote:
Just curious, why wouldn't you have them?
Because there are no added benefits (ignoring minimal speed
differences), only extra code to maintain.
I was considering a system where instance variables prefixed with
'attr_' or similar would automatically have get and set methods added
in +initialize, if such method was not already present -- but now that
we have valueForKey[Path]: and setValue:forKey[Path]: it is sort of
redundant, since the latter achieves the same, although with slightly
more verbose syntax, but since I mostly use the attributes in binding
related contexts, I rarely experience it in code.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.