Re: [Pyobjc-dev] Cocoa Bindings (was: Re: Default to returning (void)?)
Brought to you by:
ronaldoussoren
From: b.bum <bb...@ma...> - 2004-02-16 17:05:00
|
On Feb 16, 2004, at 8:42 AM, Marc-Antoine Parent wrote: > Sounds great. I did not realize this, as I had not seen any trace of > the Controller classes in {Lib|Modules}/Foundation/* > I have not done it yet, but I meant to attempt the Currency converter > from the Bindings example in PyObjC. If I make it sometime in the next > week, should it make it to the Examples? or do you have better > examples in the work for controllers? Credit for that goes to Ronald, the transparency of the PyObjC bridge, and the brilliant engineers at Apple that built the bindings layer (I can say that because it was built before I joined that particular team :).... There wasn't any kind of special bridging required for the various Controller classes. As long as an object can do key/value coding and key/value observing, it will work with the controller layer. Automatic Key/Value observing is currently a challenge. There have been a number of patches that addressed issues with KVO and, at this point, it mostly "just works". As previously mentioned, having a set of unit tests that provide decent testing coverage is on the todo list. On the 'performance hack' front, supporting indexed accessors in an automated fashion would also be useful, but I haven't thought about how useful that might truly be or what implementation pattern should be used. As it stands, the Currency Converter should be able to be ported without much effort. I would recommend starting with the examples and docs on developer.apple.com as they are the most up to date source of info.... b.bum |