ObjFW  Diff

Differences From Artifact [b3a64f1a53]:

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
80
81
82
83
84
85
86
87
88
89
90
91
{
	Class isa;
}

+ (Class)class;
- copy;
- (void)release;
- autorelease;
@end

@interface OFStackBlock: OFBlock
@end

@interface OFGlobalBlock: OFBlock
@end

@interface OFMallocBlock: OFBlock
@end
/// \endcond







<











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