Re: whether to use core data...
Re: whether to use core data...
- Subject: Re: whether to use core data...
- From: Colin Howarth <email@hidden>
- Date: Sat, 3 Oct 2009 22:06:48 +0200
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@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