Re: [Pyobjc-dev] Key/Value Coding
Brought to you by:
ronaldoussoren
From: Zachery B. <zb...@ur...> - 2003-08-14 19:41:07
|
On Thursday, August 14, 2003, at 02:19 PM, b.bum wrote: > Right -- it is of my opinion that the support for K/V coding as > presented in PyObjC should follow the rules of Objective-C as closely > as possible. Hence, a callable attribute in the path should be called > and the value returned. If the callable returns a callable -- then > that callable is returned. > > It sounds confusing, but it really isn't. Follow the path.... > evaluate each element through getKey().... if the thing returned is > callable, call it and return the result.... go to next element in path > w/whatever was returned and repeat. Excellent. Like how Zope translates URL paths to object publishing (methods if parameter-less or attributes), or how TAL path expressions work. Sweet! Zac |