@@ -229,11 +229,11 @@ { return [[[self alloc] initWithTimeIntervalSince1970: -62167219200.0] autorelease]; } -- init +- (instancetype)init { struct timeval t; self = [super init]; @@ -243,30 +243,30 @@ _seconds += (of_time_interval_t)t.tv_usec / 1000000; return self; } -- initWithTimeIntervalSince1970: (of_time_interval_t)seconds +- (instancetype)initWithTimeIntervalSince1970: (of_time_interval_t)seconds { self = [super init]; _seconds = seconds; return self; } -- initWithTimeIntervalSinceNow: (of_time_interval_t)seconds +- (instancetype)initWithTimeIntervalSinceNow: (of_time_interval_t)seconds { self = [self init]; _seconds += seconds; return self; } -- initWithDateString: (OFString *)string - format: (OFString *)format +- (instancetype)initWithDateString: (OFString *)string + format: (OFString *)format { self = [super init]; @try { const char *UTF8String = [string UTF8String]; @@ -286,12 +286,12 @@ } return self; } -- initWithLocalDateString: (OFString *)string - format: (OFString *)format +- (instancetype)initWithLocalDateString: (OFString *)string + format: (OFString *)format { self = [super init]; @try { const char *UTF8String = [string UTF8String]; @@ -325,11 +325,11 @@ } return self; } -- initWithSerialization: (OFXMLElement *)element +- (instancetype)initWithSerialization: (OFXMLElement *)element { self = [super init]; @try { void *pool = objc_autoreleasePoolPush(); @@ -387,11 +387,11 @@ OF_HASH_FINALIZE(hash); return hash; } -- copy +- (id)copy { return [self retain]; } - (of_comparison_result_t)compare: (id )object