Re: [Pyobjc-dev] newbie questions about PyObjC
Brought to you by:
ronaldoussoren
|
From: Will L. <le...@gm...> - 2008-10-03 00:26:04
|
Joe, PyObjC is a bit hairy to get started with. I wrote a handful of tutorials about a month ago ( http://lethain.com/entry/2008/aug/22/an-epic-introduction-to-pyobjc-and-cocoa/ ) which should be fairly helpful for getting started. As for your specific questions... > > 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? The confusion is that it is talking about two different kinds of support: a) support for deploying applications (using based PyObjC applications), and b) support for developing applications (using PyObjC). The short answer is PyObjC2.0 doesn't support developing on 10.4, but can create applications that run on 10.4. > 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/.) Do you have XCode fully installed? The paths may not correspond directly, but there are a plethora of examples in the /Developer/ Examples/Python/PyObjC/ folder. Some of them are up to date. > 3. How do I run the examples in /Developer/Examples/Python/PyObjC/? Most of the examples are still based on 1.x PyObjC (anything that mentions NibClassBuilder, for example), which is why they won't run without modification. > 4. I tried downloading the PyAverager example from... Again the issue is that the examples are mostly outdated. The outdated examples is the reason I wrote the aforementioned tutorial, and it assumes no knowledge of PyObjC/Cocoa, so it ought to be a helpful in your case. PyObjC is a bit undersupported at the moment, but is really a fantastic project once you get used to it. Will |