Re: [Pyobjc-dev] NSAutoreleasePool retain?
Brought to you by:
ronaldoussoren
From: Ronald O. <ous...@ci...> - 2002-12-01 16:26:58
|
There is a workaround for this, but for some reason it doesn't work. BTW. The error is triggered by the call to init(). Ronald On Sunday, Dec 1, 2002, at 05:02 Europe/Amsterdam, Bill Bumgarner wrote: > 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 > >>> > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Get the new Palm Tungsten T > handheld. Power & Color in a compact size! > http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev > |