@@ -32,10 +32,11 @@ #import "OFObject.h" #import "OFTimer.h" #import "OFThread.h" #import "OFRunLoop.h" +#import "OFAutoreleasePool.h" #import "OFAllocFailedException.h" #import "OFEnumerationMutationException.h" #import "OFInitializationFailedException.h" #import "OFInvalidArgumentException.h" @@ -569,17 +570,17 @@ return imp(self, selector, object); } - (id)performSelector: (SEL)selector - withObject: (id)object - withObject: (id)otherObject + withObject: (id)object1 + withObject: (id)object2 { id (*imp)(id, SEL, id, id) = (id(*)(id, SEL, id, id))[self methodForSelector: selector]; - return imp(self, selector, object, otherObject); + return imp(self, selector, object1, object2); } - (void)performSelector: (SEL)selector afterDelay: (double)delay { @@ -883,11 +884,11 @@ #endif } - autorelease { - return _objc_rootAutorelease(self); + return of_autorelease(self); } - self { return self;