@@ -1,7 +1,7 @@ /* - * Copyright (c) 2008-2021 Jonathan Schleifer + * Copyright (c) 2008-2022 Jonathan Schleifer * * All rights reserved. * * This file is part of ObjFW. It may be distributed under the terms of the * Q Public License 1.0, which can be found in the file LICENSE.QPL included in @@ -509,10 +509,46 @@ if (self == [OFNumber class]) return (id)&placeholder; return [super alloc]; } + ++ (instancetype)valueWithBytes: (const void *)bytes + objCType: (const char *)objCType +{ + OF_UNRECOGNIZED_SELECTOR +} + ++ (instancetype)valueWithPointer: (const void *)pointer +{ + OF_UNRECOGNIZED_SELECTOR +} + ++ (instancetype)valueWithNonretainedObject: (id)object +{ + OF_UNRECOGNIZED_SELECTOR +} + ++ (instancetype)valueWithRange: (OFRange)range +{ + OF_UNRECOGNIZED_SELECTOR +} + ++ (instancetype)valueWithPoint: (OFPoint)point +{ + OF_UNRECOGNIZED_SELECTOR +} + ++ (instancetype)valueWithSize: (OFSize)size +{ + OF_UNRECOGNIZED_SELECTOR +} + ++ (instancetype)valueWithRect: (OFRect)rect +{ + OF_UNRECOGNIZED_SELECTOR +} + (instancetype)numberWithBool: (bool)value { return [[[self alloc] initWithBool: value] autorelease]; } @@ -577,10 +613,16 @@ return [[[self alloc] initWithDouble: value] autorelease]; } - (instancetype)init { + OF_INVALID_INIT_METHOD +} + +- (instancetype)initWithBytes: (const void *)bytes + objCType: (const char *)objCType +{ OF_INVALID_INIT_METHOD } - (instancetype)initWithBool: (bool)value {