Index: src/foundation-compat.m ================================================================== --- src/foundation-compat.m +++ src/foundation-compat.m @@ -12,12 +12,18 @@ * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ -/* FIXME: - * Kommentar warum benötigt +/* + * This file replaces NSAutoreleasePool with OFAutoreleasePool when it is + * linked. This is done so there is no conflict because OFBlocks are used + * (blocks are OFBlocks as soon as ObjFW is linked). An application expecting + * an NSBlock, but getting an OFBlock because ObjFW is linked, would fail to + * autorelease the block otherwise, as the block would be in an + * OFAutoreleasePool. By replacing NSAutoreleasePool with OFAutoreleasePool, + * the application will still properly free the autoreleased block. */ #include "config.h" #import