[Pythonmac-SIG] Python code in Objective C
bob at redivi.com
Thu Jun 30 01:33:34 CEST 2005
On Jun 29, 2005, at 11:16 AM, Robert Brown wrote:
> I've got an object written in Python (descended from NSObject using
> PyObjC) that I'd like to have access to in Objective-C. There's an
> example where some Python code is packaged as a plugin, then loaded
> in an Objective-C app, but it only ends up specifying one of the
> objects instantiated in the nib. How would you go about using the
> Python objects directly, like you would a framework, for instance?
NSClassFromString, objc_lookUpClass, -[NSBundle classNamed:], etc.
More information about the Pythonmac-SIG