From: Rod S. <rsc...@xm...> - 2005-11-11 01:29:20
|
I have some questions about RubyCocoa's support for key value coding and the new kvc_accessor and kvc_depends_on methods. First off, in Objective-C, all objects are already KVC compliant as long as you follow certain naming conventions. So why do we have a separate kvc_accessor method instead of just modifiying attr_accessor to support key value coding? Is it because attr_accessor is built into Ruby and we needed a different name? Next, what does kvc_depends_on do? I'm guessing it's for Key Value Observing? If that's the case why don't we just use the addObserver method in NSObject that is for that purpose? Or is it just a shortcut? Sorry if these questions have been answered before, but I haven't seen a description of what these do. Just scattered discussions with no clear definition. Thanks, Rod Schmidt infiniteNIL Software |