Re: [Pyobjc-dev] Using Python from ObjC tutorial - Give it a try
Brought to you by:
ronaldoussoren
From: Jack J. <Jac...@cw...> - 2003-06-18 20:06:18
|
On woensdag, jun 18, 2003, at 21:26 Europe/Amsterdam, Ronald Oussoren wrote: >> Folks, >> the "using PyObjC in existing ObjC applications" tutorial is >> finished. I haven't checked it in yet, >> but it's attached to this mail. Please give it a spin and let me know >> whether I should check it in. > > To start of I have one minor nit: the PythonGlue.{h,m,py} files are > not in the archive :-) Ok, I'll try to remember adding these when I add this to CVS:-) > W.r.t. loading PythonGlue: It might not be necesary to instantiate a > class, you could do everything with class methods. You could even do > all the work in a +load method, but as the order in which the load > methods are called seems to be undefined this is a bit scary. I would really like the code to be executed *before* any nib files are read. but in main.m you can't really do anything yet as AppKit hasn't yet pulled itself into existence. Is there any call we could do in main() that would result in our code being called after AppKit/Foundation are initialized, but before anything else happens? > I noticed that you have to build the iTunes OSA module yourself, why > isn't this part of MacPython? OTOH, having a description of how you > build those modules is very usefull in itself. There's lots of useful applications for which to have the OSA suite in some situations. I've taken the minimal approach of including only a select few prebuilt. For Python 2.4 I hope to have either automated the process, or at least streamlined it. > > I like this example, please add it to the repository. Ok, will do. -- - Jack Jansen <Jac...@or...> http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - |