Differences From Artifact [b3a64f1a53]:
- File src/OFBlock.h — part of check-in [ac3f7882e5] at 2010-09-19 01:49:09 on branch trunk — Add +[class] to OFBlock. (user: js, size: 1846) [annotate] [blame] [check-ins using]
To Artifact [78089d079f]:
- File
src/OFBlock.h
— part of check-in
[f78e4e4714]
at
2010-10-05 20:01:08
on branch trunk
— Remove -[autorelease] from OFBlock.
The reason is that a block might be an NSBlock on OS X where it would
add the block to an NSAutoreleasePool. This change forces the developer
to use [OFAutoreleasePool addObject: block], which will also work if
the block is an NSBlock. Thus, this change is to force developers to
write portable code. (user: js, size: 1831) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
73 74 75 76 77 78 79 | { Class isa; } + (Class)class; - copy; - (void)release; | < | 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 | { Class isa; } + (Class)class; - copy; - (void)release; @end @interface OFStackBlock: OFBlock @end @interface OFGlobalBlock: OFBlock @end @interface OFMallocBlock: OFBlock @end /// \endcond |