[Pyobjc-dev] NSAutoreleasePool retain?
Brought to you by:
ronaldoussoren
From: Bill B. <bb...@co...> - 2002-12-01 04:03:51
|
In the current code from CVS, I'm seeing the following problem. Not a big deal -- easy to work around -- but I thought there was already a workaround in place...? [bumbox:pyobjc/Modules/objc] bbum% python Python 2.2 (#1, 07/14/02, 23:25:09) [GCC Apple cpp-precomp 6.14] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> from Foundation import * >>> NSAutoreleasePool.alloc().init() Traceback (most recent call last): File "<stdin>", line 1, in ? ValueError: NSInvalidArgumentException - *** -[NSAutoreleasePool retain]: Cannot retain an autorelease pool >>> NSAutoreleasePool.new() Traceback (most recent call last): File "<stdin>", line 1, in ? ValueError: NSInvalidArgumentException - *** -[NSAutoreleasePool retain]: Cannot retain an autorelease pool >>> |