mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Fix timer initialisation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@14355 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
57103a8e19
commit
4fc194d797
1 changed files with 3 additions and 3 deletions
|
@ -78,7 +78,7 @@ static Class NSDate_class;
|
|||
if (fd == nil)
|
||||
{
|
||||
_date = [[NSDate_class allocWithZone: NSDefaultMallocZone()]
|
||||
initWithTimeIntervalSinceReferenceDate: _interval];
|
||||
initWithTimeIntervalSinceNow: _interval];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -140,8 +140,8 @@ static Class NSDate_class;
|
|||
repeats: (BOOL)f
|
||||
{
|
||||
id t = [self timerWithTimeInterval: ti
|
||||
invocation: invocation
|
||||
repeats: f];
|
||||
invocation: invocation
|
||||
repeats: f];
|
||||
[[NSRunLoop currentRunLoop] addTimer: t forMode: NSDefaultRunLoopMode];
|
||||
return t;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue