Re: [Pyobjc-dev] step by step tutorial - second edition
Brought to you by:
ronaldoussoren
From: Jack J. <Jac...@or...> - 2003-04-03 20:47:32
|
On woensdag, apr 2, 2003, at 21:34 Europe/Amsterdam, Ronald Oussoren wrote: > > On Wednesday, Apr 2, 2003, at 17:20 Europe/Amsterdam, Jack Jansen > wrote: > >> I've converted my step-by-step tutorial to Restructured Text, fixed a >> couple of things people reported and made the directory and file >> structure a bit more palatable. If people could have a look and >> comment on it (especially on the bits with "XXX editorial note" or >> "XXX implementation note") that would be helpful. I've included the >> generated HTML so you don't have to read the ReST source (or install >> the docutils) to read it. > Step 5: > - AppKit.NibClassBuilder has recently moved to > 'PyObjCTools.NibClassBuilder' (the former will also work in 0.9 but > will emit a warning). > - Use 'PyObjCTools.AppHelper.runEventloop()' instead of your main > function (that should also address your concern about the amount of > boilerplate code). Your other suggestions I have incorporated (or am incorporating right now, along with Bob's suggestion in private mail that I cater more for 2.2 users too), and actually I've put this in the document already too, but it just struck me that it would be a lot easier if NibClassBuilder would also optionally create the main program. Is it okay if I add a "--main" option to NibClassBuilder to do this? Actually, coming to think of it, does it even have to be optional? The code is going to be inside an "if __name__ == '__main__':" guard anyway, so we could always add it. Or not? -- - Jack Jansen <Jac...@or...> http://www.cwi.nl/~jack - - If I can't dance I don't want to be part of your revolution -- Emma Goldman - |