[Pythonmac-SIG] embed python in cocoa
Georg Seifert
georg.seifert at gmx.de
Thu May 22 12:09:54 CEST 2008
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
> <georg.seifert at gmx.de> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20080522/18854606/attachment.htm>
More information about the Pythonmac-SIG
mailing list