Re: [Pyobjc-dev] Newbie: Can't get TableModel to work
Brought to you by:
ronaldoussoren
From: Ronald O. <ous...@ci...> - 2002-11-11 08:47:27
|
On Monday, Nov 11, 2002, at 09:35 Europe/Amsterdam, Just van Rossum wrote: > Ronald Oussoren wrote: > >> You should run 'setup-app.py' in the same directory to create a .app >> bundle, and then use 'open *.app' to actually run the example. > > This results in an ImportError on buildtools. Note that this is a > plain unix > install: even if I make sure buildtools can be found I get an error: > about the > macfs module this time. Doesn't look this is going to work with a > vanilla 2.2 > install :-( Thanks for reminding me! The setup-app.py script indirectly uses a MacPython module, and that is not installed in a vanilla install. I'll have to rewrite the buildtools module. You might want to try TableModel2, this contains the same code but now part of a ProjectBuilder project. This project does work with python 2.2. > >> nibwrapper.py could not be found because the objc module updates >> sys.path to make sure the Resources directory in an .app bundle is on >> the Python search path. I'm checking in an updated version of that >> code >> later today, the current version is slightly to aggressive. > > Ah. Not that this patch actually helps you, after sending my previous e-mail I checked in the patch and tried to start the example from the command-line and got an error from Cocoa about not being able to find a value in the Info.plist file. And then I remembered: To use NIB files you have to have a real .app bundle. Ronald |