MacOS-X update

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@14347 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2002-08-27 13:40:42 +00:00
parent 36e36ef34d
commit 99be9b9e68
4 changed files with 78 additions and 43 deletions

View file

@ -294,11 +294,12 @@ static inline BOOL timerInvalidated(NSTimer* timer)
target = RETAIN(aTarget);
argument = RETAIN(anArgument);
timer = [[NSTimer allocWithZone: NSDefaultMallocZone()]
initWithTimeInterval: delay
targetOrInvocation: self
selector: @selector(fire)
userInfo: nil
repeats: NO];
initWithFireDate: nil
interval: delay
target: self
selector: @selector(fire)
userInfo: nil
repeats: NO];
}
return self;
}
@ -1662,8 +1663,10 @@ if (0) {
}
/* Adding timers. They are removed when they are invalid. */
/**
* Adds a timer to the loop in the specified mode.<br />
* Timers are removed automatically when they are invalid.<br />
*/
- (void) addTimer: (NSTimer*)timer
forMode: (NSString*)mode
{