@@ -186,17 +186,17 @@ + (instancetype)fileWithHandle: (of_file_handle_t)handle { return [[[self alloc] initWithHandle: handle] autorelease]; } -- init +- (instancetype)init { OF_INVALID_INIT_METHOD } -- initWithPath: (OFString *)path - mode: (OFString *)mode +- (instancetype)initWithPath: (OFString *)path + mode: (OFString *)mode { of_file_handle_t handle; @try { void *pool = objc_autoreleasePoolPush(); @@ -300,11 +300,11 @@ } return self; } -- initWithHandle: (of_file_handle_t)handle +- (instancetype)initWithHandle: (of_file_handle_t)handle { self = [super init]; _handle = handle;