Re: [Pyobjc-dev] Headache over hacking an XML editor
Brought to you by:
ronaldoussoren
From: Just v. R. <ju...@le...> - 2003-01-14 10:00:08
|
Just van Rossum wrote: > > PythonItem.__new__ should return cls.alloc().init().release(). Hm, I just discovered .release() returns None. If I do the release() separately it works just fine. I still don't understand why cls.alloc().init() would result in a retainCount of 2, though. Every time I see a retain() or release() call in Python code I can't help but think there's something terribly wrong :-( Just |