On 3 Oct, 2009, at 21:31, Mike Abdullah wrote:

Well for a start your translation is wrong. Being able to do this:

baz = foo.bar;
foo.bar = baz;

is an Objective-C 2.0 feature – Dot Notation. It is completely orthogonal to Key-Value Coding.

Dot Notation works by the compiler figuring out which method calls the dots correspond to.

Key-Value Coding happens at run-time where the object receives a - valueForKey: or -setValue:forKey: message and then decides how to handle it based upon the key.

Hey, stop trying to confuse me. :-)

I know the dot notation is an Objective C 2.0 feature - and I was assuming you experts knew it too. I didn't want to confuse things by mentioning attributed properties, since that's not the point.

If you use dot notation and properties, you are using the -value and - setValue: accessor methods, which is KVC compliant and means that KVO bits will get notified, no?_______________________________________________

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

This email sent to [email protected]

Reply via email to