[Pyobjc-dev] newbie questions about PyObjC
Brought to you by:
ronaldoussoren
|
From: Joe S. <jo...@st...> - 2008-10-02 23:44:48
|
I last used Python years ago, but now I'm considering it again. Mac application development is very important to my work, so this led me to PyObjC. But I'm confused on a few points... 1. The 2008-05-27 status update says that it doesn't support 10.4.... yet the "status" area says that PyObjC supports 10.3.9 and later, and I see that PyObjC 2.0 not only supports 10.5, but it's actually included with the OS. So which is it? Is 10.4 supported or not? 2. The "Examples" area of the web site talks about some great-sounding examples... but where do I get them? (They don't seem to match up to the folders in /Developer/Examples/Python/PyObjC/.) 3. How do I run the examples in /Developer/Examples/Python/PyObjC/? None of the folders seem to contain a prebuilt executable, and the "read me" files usually don't make much sense. For example, the one in PyObjC/Cocoa/AppKit/DatePicker directs me to run the "supplied XCode project," but there isn't any. I tried cd'ing to that directory and doing "python main.py", but got: IA-J1:DatePicker> python main.py 2008-10-02 15:38:48.330 Python[12024:613] No Info.plist file in application bundle or no NSPrincipalClass in the Info.plist file, exiting Similar attempts in other directories were also not met with success. (The wxPython examples all worked fine, so I think my stock Python installation is OK.) 4. I tried downloading the PyAverager example from <http://developer.apple.com/cocoa/pyobjc.html >. This included a prebuilt binary that works fine. But when I try to run the XCode project, I get this error: Oct 2 15:41:24 IA-J1 PyAverager[12041]: PyAverager Error\nAn unexpected error has occurred during execution of the main script\n \nNibLoaderError: Superclass 'NibClassBuilder' for 'PyAveragerAppDelegate' not found. How do I fix that? I'm really excited about PyObjC in theory, but so far I haven't had much success with it -- I'm hoping some kind soul here will help me get over these initial hurdles. Thanks, - Joe |