(-performSelector:target:argument:order:modes:): Order the performers correctly (lower orders first). Correct the documentation.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@15964 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Alexander Malmberg 2003-02-15 14:58:25 +00:00
parent 0d0dda126c
commit bfed503388
2 changed files with 12 additions and 4 deletions

View file

@ -2190,11 +2190,13 @@ static void setPollfd(int fd, int event, GSRunLoopCtxt *ctxt)
}
/**
* Sets up repeated sending of aSelector to target with argument.<br />
* The selector is sent in each runloop iteration until cancelled.<br />
* Sets up sending of aSelector to target with argument.<br />
* The selector is sent before the next runloop iteration (unless
* cancelled before then).<br />
* The target and argument objects are <em>not</em> retained.<br />
* The order value is used to determine the order in which messages
* are sent if multiple messages have been set up.
* are sent if multiple messages have been set up. Messages with a lower
* order value are sent first.
*/
- (void) performSelector: (SEL)aSelector
target: (id)target
@ -2239,7 +2241,7 @@ static void setPollfd(int fd, int event, GSRunLoopCtxt *ctxt)
GSRunLoopPerformer *p;
p = GSIArrayItemAtIndex(performers, i).obj;
if (p->order <= order)
if (p->order > order)
{
GSIArrayInsertItem(performers, (GSIArrayItem)item, i);
break;