Re: [Pyobjc-dev] How do I get NSTimer to call a python method?
Brought to you by:
ronaldoussoren
From: Ronald O. <ous...@ci...> - 2003-06-27 10:20:27
|
On Thursday, Jun 26, 2003, at 10:13 Europe/Amsterdam, Ronald Oussoren wrote: > > On Wednesday, Jun 25, 2003, at 20:26 Europe/Amsterdam, Kevin Marks > wrote: > >> >> On Wednesday, June 25, 2003, at 08:39 AM, bb...@ma... wrote: >> >>> (Sorry for the faulty repeat of Ronald's followup -- I'm on a >>> ****slow**** connection.) >>> >>> First, change the class name 'ircController' to 'IRCController' -- >>> it follows the Obj-C pattern and will reduce confusion (in that >>> ircController in the code below really should be ircController). >>> >>> I also noticed that you are using multiple inheritance... >>> >>> class ircController(NibClassBuilder.AutoBaseClass, irclib.irc) > > I completely missed the MI stuff when I first looked at this. You > shouldn't use MI with Cocoa classes, I'm actually suprised that this > works at all as your supposed to get an exception when you use > multiple inheritance. I guess I'll have to add a unittest and some > documentation for this. Please ignore this, my memory was playing up. You can use MI inheritance with ObjC classes, as long as only the first, and only the first, base class is an Objective-C class. However, if you add actions using mixins you code would not be as efficient as possible and I would advise against doing that. That doesn't seem to be a problem in this case. I'm typing this while away from an Internet connections (I'm at www.europython.org, and sporadicly check my mail between sessions), so maybe the problem is already solved. If it isn't, it would be very helpfull of you could create a minimal program that reproduces the problem. Ronald |