Re: [Pyobjc-dev] Still struggling with NSOutlineView
Brought to you by:
ronaldoussoren
From: Just v. R. <ju...@le...> - 2003-01-18 19:55:23
|
Ronald Oussoren wrote: > I found the problem: You didn't really hold onto the references to the > childeren. > > The attached version of PythonBrowser.py works a lot better. Ah, nice, thanks. That may have been a problem, but it did work for me before, as long as PythonItem was subclassed from NSObject. The main issue is that it doesn't work when it _isn't_ subclassed from NSObject: it crashes as soon as you click (hm, I seem to recall it didn't crash before your patch, maybe other PyObjC changes play a role...). > However, > when I try to expand the tree at a __doc__ item the program crashes > (AttributeError: No attribute childeren) Erm, where do you see a __doc__ item that's expandable? __doc__ is usually a stirng or None, neither of which should be expandable... Thanks, Just |