[Pythonmac-SIG] Carbon GUI/MacPython

Kevin Walzer sw at wordtech-software.com
Fri Aug 13 15:39:05 CEST 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Bob Ippolito wrote:

|
| The question is WHY you would choose Carbon over Cocoa?  Have you tried
| directly using both?!  I would say that PyObjC is already more or less
| the 'official' way to get at Mac-native APIs from Python.  If not now,
| then it will be soon enough.

At this point, more of the work I'm doing focuses on Carbon. For
instance, I'm also working with Tk Aqua, which is Carbon-based. Any
extensions there have to be written in C, which I'm learning for just
that purpose. As I get further along and drill into the Carbon
API/AppleEvents stuff in more depth, it seems logical to me to try to
extend that learning. It would be simpler, probably, just to write my
Python GUI's in Tkinter (since I'm learning Tk), but I'd rather expand
my knowledge of the tools.

I have tried Cocoa via AppleScript Studio and like it a lot. Building
the GUI and hooking everything up with about 30 lines of AppleScript
produced a reasonable GUI for tcpdump. But AppleScript Studio is
relatively limited in terms of what it can do--it's certainly not the
whole of Cocoa. (Nor is it as powerful as Python.) Unfortunately, I've
looked at PyObjC, and I was unable to translate what I've learned from
ASS into what is going on with PyObjC.

Perhaps I'll change my mind once I get further into Python--still pretty
much a beginner at this point. :-)

|
|
| Support for the Carbon APIs isn't going to go anywhere, but I think
| you'll more or less be alone in using them if that's what you choose to
| do.

That seems pretty clear. Perhaps I'll try it for a while and find it's
too much work. :-)

Thanks for the reply.

- --
Kevin Walzer, PhD
WordTech Software--Open Source Applications and Packages for OS X
http://www.wordtech-software.com
http://www.smallbizmac.com
http://www.kevin-walzer.com
mailto:sw at wordtech-software.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBHMR5F6m9qPmThLQRAuPnAJ45msjqhrIMnfTguhOpsfqdTkQsUQCfWlld
cU4DRZwbNOtS15rJmb562HI=
=uNK0
-----END PGP SIGNATURE-----


More information about the Pythonmac-SIG mailing list