mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 17:10:48 +00:00
([NSTimer -compare:]): New method, so they get properly sorted in a
Heap in RunLoop. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2041 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
27ad4790b3
commit
61ba3d1097
1 changed files with 4 additions and 0 deletions
|
@ -149,4 +149,8 @@
|
|||
return _info;
|
||||
}
|
||||
|
||||
- (int)compare:(NSTimer*)anotherTimer
|
||||
{
|
||||
return [_fire_date compare: anotherTimer->_fire_date];
|
||||
}
|
||||
@end
|
||||
|
|
Loading…
Reference in a new issue