Re: [Pyobjc-dev] Wrong spelling of tableView_objectValueForTableColumn_row_()?
Brought to you by:
ronaldoussoren
From: Jack J. <Jac...@cw...> - 2003-07-23 14:45:34
|
On Wednesday, Jul 23, 2003, at 14:02 Europe/Amsterdam, Zachery Bir wrote: > On Wednesday, July 23, 2003, at 06:40 AM, Zachery Bir wrote: > >> Nope, this is off CVS. Your TableModel doesn't extend >> NSTableDataSource, either. Oh, poo. I wonder if I'm using a 1.0b1 >> example and 0.9. Yup. > > Now using 1.0b1+ on all my pythons: /sw/bin/python (2.2.2), > /usr/bin/python (2.2), and /usr/local/bin/python (2.3b2). > > Running TableModel.app gets me this crash log (it generates this when > I use /sw/bin/python and /usr/bin/python, but not > /usr/local/bin/python): Sounds like an instance of the borrowed reference problem[*], but then I would expect it to happen with 2.3b2 too... [*] there are a number of Cocoa routines that keep a reference to an object you pass in, but without doing the retain(). For ObjC programs this tends to be harmless, but not for PyObjC programs. A quick check to see whether this is the problem is to keep a reference to the Python object, that will work around this problem. -- Jack Jansen, <Jac...@cw...>, http://www.cwi.nl/~jack If I can't dance I don't want to be part of your revolution -- Emma Goldman |