mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Add TODOs
This commit is contained in:
parent
5f060018eb
commit
2b3846e76d
2 changed files with 4 additions and 14 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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"];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue