@@ -42,11 +42,11 @@ return; pool_list_key = [[OFTLSKey alloc] initWithDestructor: release_list]; } -+ (void)addToPool: (OFObject*)obj ++ (void)addObjectToTopmostPool: (OFObject*)obj { OFList *pool_list = [OFThread objectForTLSKey: pool_list_key]; if (pool_list == nil || [pool_list last] == NULL) { @try { @@ -62,11 +62,11 @@ [obj release]; @throw [OFInitializationFailedException newWithClass: self]; } @try { - [[pool_list last]->object addToPool: obj]; + [[pool_list last]->object addObject: obj]; } @catch (OFException *e) { [obj release]; @throw e; } } @@ -123,16 +123,16 @@ [[OFThread objectForTLSKey: pool_list_key] remove: listobj]; [super dealloc]; } -- addToPool: (OFObject*)obj +- addObject: (OFObject*)obj { if (objects == nil) objects = [[OFMutableArray alloc] init]; - [objects add: obj]; + [objects addObject: obj]; [obj release]; return self; }