Michael, many thanks for you example.

I found out, that I do not need to do anything. Because I can just call "NSDocumentController.sharedDocumentController().documents()" and I get what I need. It runs perfectly and out of the box. it is amazing. I need to recheck the pyOjcC bridge docs as it is some time since I used this but that will be easy.

Many thanks for your detailed replies.

Georg
On 22.05.2008, at 05:15, Michael VanLandingham wrote:

Hi Georg,

I've posted an example app up here:
PythonEmbedExample-ObjectPool

cobbled together from some other projects where I've done this kind of thing. A small explanation here:
http://blog.alienoverlord.com/?p=14

Hopefully that will give you some ideas on how to accomplish what you wish to do. The method in the example has limitation/ drawbacks, but it might be a good start.

Best Wishes,
Michael


On Mon, May 19, 2008 at 6:45 PM, Georg Seifert <[EMAIL PROTECTED]> wrote:

It becomes a little trickier if you want your scripts to have access to instance variables. In that case, you must create a mechanism by which you can find them (I've used a Singleton pattern for this).

Can anyone give an example for this?

Georg


_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to