Re: [Pyobjc-dev] Using Python from ObjC tutorial - Give it a try
Brought to you by:
ronaldoussoren
From: Ronald O. <ous...@ci...> - 2003-06-18 20:36:21
|
On Wednesday, Jun 18, 2003, at 22:05 Europe/Amsterdam, Jack Jansen wrote: > > >> 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. AFAIK any frameworks that have been linked into the executable are fully initialized by the time main is called, you can add the PythonGlue code before the call to NSApplicationMain. Ronald |