ObjFW  Hex Artifact Content

Artifact 7aefac85c2eb700c84229ad4f1afe8132442711e0681c5f7cad2dd4f9f792e7e:

  • File src/foundation-compat.m — part of check-in [3d0a1604ae] at 2011-02-02 22:26:45 on branch trunk — Increase blocks compatibility by replacing NSAutoreleasePool.

    NSAutoreleasePool is replaced by OFAutoreleasePool now so that 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.

    This will also make it easier to write applications using both,
    Foundation and ObjFW, since the developer does not need to take care
    about two different autorelease pools, but they are united instead. (user: js, size: 1969) [annotate] [blame] [check-ins using]


A hex dump of this file is not available. Please download the raw binary file and generate a hex dump yourself.