[Pyobjc-dev] My second roadblock
Brought to you by:
ronaldoussoren
From: Gary R. <gro...@tr...> - 2003-05-06 16:29:27
|
I'm working through tutorial.html. I've gone through the Cocoa tutorial steps, and have a nib file that looks like the appropriate CurrencyConverter application, and all the text fields behave properly, etc. At this point my MainMenu.nib directoty looks like step3-MainMenu.nib, as the tutorial says it shoud. The next step in the tutorial says: > 4. Create the skeleton Python script by running NibClassBuilder as a tool. > When invoked as a main program from the command line NibClassBuilder will > parse the NIB file and create a skeleton module for you. Invoke it as follows > (from the src directory): > > $ python $PYLIB/site-packages/PyObjC/PyObjCTools/NibClassBuilder.py \ > MainMenu.nib > CurrencyConverter.py > > The result of this can be seen in step4-CurrencyConverter.py. This step seemed to execute correctly, but my CurrencyConverter.py looks very different from step4-CurrencyConverter.py. Here is what it looks like: > from PyObjCTools import NibClassBuilder, AppHelper > > > > > > if __name__ == "__main__": > AppHelper.runEventLoop() That's the entire contents of the file. Lots of stuff seems to be missing. I have no idea why. As far as I can tell, I am doing the tutorial instructions exactly as described, and CurrencyConverter.py was in fact generated, but it apparently isn't correct. Any ideas? --Gary -- [http://ThisURLEnablesEmailToGetThroughOverzealousSpamFilters.org] Gary Robinson CEO Transpose, LLC gro...@tr... 207-942-3463 http://www.transpose.com http://radio.weblogs.com/0101454 |