[Pyobjc-dev] pyobjc introspection
Brought to you by:
ronaldoussoren
From: Steven D. M. <sd...@mi...> - 2000-12-23 04:43:01
|
There's been a discussion thread on mac...@om... on how to get all of the methods of a class. ( I'ld like to give pyobjc classes the same sort of introspection capabilities that normal python objects have. ) I got some objc code from Pierre Thibault (on that list) that implements some introspection classes for obj-c. ( It doesn't seem to get all of the methods from all of the categories -- which is part of the ongoing discussion in that thread. ) If he publicly releases that code, I'll make the framework and my python wrapper code available. In any case, I'ld like to see some similar functionality built into pyobjc. ( I'm used to using dir() and __doc__ to figure out how to use python modules -- it was a bit confusing to find that all pyobjc classes seem to have the same three attributes: ['Class', 'isClass', 'isInstance'], and nothing else. ( The runtime checks that the class responds to the selector you give it, but it can't tell you all of the selectors. ) -- Steve Majewski <sd...@Vi...> |