Re: [Pyobjc-dev] Constants etc.
Brought to you by:
ronaldoussoren
From: Ronald O. <ous...@ci...> - 2003-02-02 20:08:54
|
On Sunday, Feb 2, 2003, at 19:08 Europe/Amsterdam, Just van Rossum wrote: > bb...@ma... wrote: > >> Ronald: should we go ahead and auto-generate the source to cover all >> of AB's compiled constants? This would require creating >> yet-another-module. Maybe AddressBook should be moved out of PyObjC >> and into its own project given that most apps will not use the AB API? > > I've been wondering, if interfacing an arbitrary framework is mostly > automated, we could make it more dynamic with an import hook: if > "import > SomeFramework" fails, a hook can be called to wrap it if it happens to > be ean existing framework. That way we could delete AddressBook > altogether ;-) The new import-hook mechanism looks easy enough to use for things like this. You'd loose the mapping of constants and global functions this way, but if you want those you can still implement wrappers the hard way. Ronald |