mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
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:
parent
36e36ef34d
commit
99be9b9e68
4 changed files with 78 additions and 43 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue