On Jun 13, 2005, at 4:02 PM, Robert Brown wrote: > I've been thinking about writing a nice interpreter view that can > be easily embedded as a debugging console in applications for a > while... thanks for doing it for me! How do I get references to my > objects though? I'd specifically like to get a reference to a > controller object. Through NSApp() I can get the windows and GUI > objects, but the models and controllers seem to be out of reach. I > tried making a global variable in my Python program but it doesn't > get imported into the PyInterpreterView.
Subclass it and add the behavior you want, or define some Objective-C visible class that can see what you want access to. PyInterpreter has been a relatively easy to embed example in PyObjC for a very long time, it just wasn't an IB palette until recently. -bob _______________________________________________ Pythonmac-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/pythonmac-sig
