mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
(-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:
parent
509a524cda
commit
46b480c41d
2 changed files with 12 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue