Index: src/exceptions/OFConditionStillWaitingException.h ================================================================== --- src/exceptions/OFConditionStillWaitingException.h +++ src/exceptions/OFConditionStillWaitingException.h @@ -46,10 +46,12 @@ * * @param condition The condition for which is still being waited * @return A new, autoreleased condition still waiting exception */ + (instancetype)exceptionWithCondition: (OFCondition *)condition; + +- (instancetype)init OF_UNAVAILABLE; /** * @brief Initializes an already allocated condition still waiting exception. * * @param condition The condition for which is still being waited Index: src/exceptions/OFConditionStillWaitingException.m ================================================================== --- src/exceptions/OFConditionStillWaitingException.m +++ src/exceptions/OFConditionStillWaitingException.m @@ -27,11 +27,11 @@ return [[[self alloc] initWithCondition: condition] autorelease]; } - (instancetype)init { - return [self initWithCondition: nil]; + OF_INVALID_INIT_METHOD } - (instancetype)initWithCondition: (OFCondition *)condition { self = [super init];