Re: [Pyobjc-dev] Further app breakage
Brought to you by:
ronaldoussoren
From: Zachery B. <zb...@ur...> - 2003-08-21 15:43:03
|
On Thursday, August 21, 2003, at 09:39 AM, Bob Ippolito wrote: > On Wednesday, Aug 20, 2003, at 16:35 America/New_York, Zachery Bir > wrote: > >> So, in an attempt to get back to my original working version (finally >> a need to get CVS running - d'oh!), I commented out my refactored >> class and stubbed in the behavior in my application_openFile_() >> method. Unfortunately, I still can't get my app to run >> application_openFile_() at all. >> >> I've even tried commenting out my new NSTimer and all the behavior in >> my init() method except for the creation of a data structure, and it >> still won't run. >> >> I don't see anything blatantly wrong with the spelling here. Can >> anyone shed some light on it? >> >> The ZopeEditController object is the application delegate, as its >> spelled out in the nib file. I can make the full Project archive >> available to anyone who thinks it might shed more light (it's 232Kb >> in size, tarred up) >> >> Zac >> >> <ZopeEditController.py> > > You're not calling application.setDelegate_(...) anywhere, that could > be it.. unless the NIB is doing that somewhere? In the nib, I've explicitly set the delegate of Window (does this represent the app?) to ZopeEditController. If I wanted to "Belt & Suspenders" it, where would I set the setDelegate_() method? In ZopeEditController's init() method? or in __main__.py somewhere? > Also you probably shouldn't use backslash to continue lines, just use > parentheses. I think the backslash thing is one of Guido's python > regrets, and I don't think anyone really uses it anymore (just like > nobody really uses backticks to do repr() anymore). Corrected - I had a quick offline discussion with b.bum a while ago about reconciling ObjC longish method names with some of the traditional python style conventions :) Zac |