@@ -62,11 +62,11 @@ OF_BLOCK_FIELD_IS_WEAK = 16, OF_BLOCK_BYREF_CALLER = 128 }; @protocol RetainRelease -- retain; +- (instancetype)retain; - (void)release; @end #ifdef OF_OBJFW_RUNTIME /* Begin of ObjC module */ @@ -423,16 +423,16 @@ objc_registerClassPair((Class)&_NSConcreteMallocBlock); # endif #endif } -+ alloc ++ (instancetype)alloc { OF_UNRECOGNIZED_SELECTOR } -- init +- (instancetype)init { OF_INVALID_INIT_METHOD } - (void *)allocMemoryWithSize: (size_t)size @@ -462,24 +462,24 @@ - (void)freeMemory: (void *)ptr { OF_UNRECOGNIZED_SELECTOR } -- retain +- (instancetype)retain { if (object_getClass(self) == (Class)&_NSConcreteMallocBlock) return Block_copy(self); return self; } -- copy +- (id)copy { return Block_copy(self); } -- autorelease +- (instancetype)autorelease { if (object_getClass(self) == (Class)&_NSConcreteMallocBlock) return [super autorelease]; return self;