Add TODOs

This commit is contained in:
Gregory John Casamento 2019-10-24 18:22:10 -04:00
parent 5f060018eb
commit 2b3846e76d
2 changed files with 4 additions and 14 deletions

View file

@ -63,23 +63,13 @@
- (instancetype)initWithStartDate:(NSDate *)startDate
endDate:(NSDate *)endDate
{
self = [super init];
if(self != nil)
{
ASSIGNCOPY(_startDate, startDate);
_duration = [endDate timeIntervalSinceDate: startDate];
if(_duration < 0)
{
[NSException raise: NSInvalidArgumentException
format: @"Duration %f is less than zero", _duration];
}
}
return self;
return [self initWithStartDate: startDate
duration: [endDate timeIntervalSinceDate: startDate]];
}
- (instancetype) initWithCoder: (NSCoder *)coder
{
// TODO: Implement encoding
return nil;
}

View file

@ -125,7 +125,7 @@
{
if([coder allowsKeyedCoding])
{
// Verify that this is the correct encoding...
// TODO: Verify that this is the correct encoding...
[coder encodeObject: _unit forKey: @"unit"];
[coder encodeDouble: _doubleValue forKey: @"doubleValue"];
}