Use instancetype in constructors for increased subclassing friendliness

This commit is contained in:
Blake Watters
2012-12-22 14:54:49 -05:00
parent 929cd44bd7
commit b78deb3eed
47 changed files with 102 additions and 106 deletions

View File

@@ -33,9 +33,9 @@ static NSTimeInterval RKDotNetDateFormatterMillisecondsFromSeconds(NSTimeInterva
@implementation RKDotNetDateFormatter
+ (RKDotNetDateFormatter *)dotNetDateFormatterWithTimeZone:(NSTimeZone *)newTimeZone
+ (instancetype)dotNetDateFormatterWithTimeZone:(NSTimeZone *)newTimeZone
{
RKDotNetDateFormatter *formatter = [[RKDotNetDateFormatter alloc] init];
RKDotNetDateFormatter *formatter = [self new];
if (newTimeZone) formatter.timeZone = newTimeZone;
return formatter;
}