mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 08:41:03 +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
|
@ -1,3 +1,9 @@
|
||||||
|
2003-02-15 15:53 Alexander Malmberg <alexander@malmberg.org>
|
||||||
|
|
||||||
|
* Source/NSRunLoop.m (-performSelector:target:argument:order:modes:):
|
||||||
|
Order the performers correctly (lower order values first). Correct
|
||||||
|
the documentation.
|
||||||
|
|
||||||
2003-02-13 Richard Frith-Macdonald <rfm@gnu.org>
|
2003-02-13 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/NSTimeZone.m: Fix memory leak when making absolute
|
* Source/NSTimeZone.m: Fix memory leak when making absolute
|
||||||
|
|
|
@ -2190,11 +2190,13 @@ static void setPollfd(int fd, int event, GSRunLoopCtxt *ctxt)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets up repeated sending of aSelector to target with argument.<br />
|
* Sets up sending of aSelector to target with argument.<br />
|
||||||
* The selector is sent in each runloop iteration until cancelled.<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 target and argument objects are <em>not</em> retained.<br />
|
||||||
* The order value is used to determine the order in which messages
|
* 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
|
- (void) performSelector: (SEL)aSelector
|
||||||
target: (id)target
|
target: (id)target
|
||||||
|
@ -2239,7 +2241,7 @@ static void setPollfd(int fd, int event, GSRunLoopCtxt *ctxt)
|
||||||
GSRunLoopPerformer *p;
|
GSRunLoopPerformer *p;
|
||||||
|
|
||||||
p = GSIArrayItemAtIndex(performers, i).obj;
|
p = GSIArrayItemAtIndex(performers, i).obj;
|
||||||
if (p->order <= order)
|
if (p->order > order)
|
||||||
{
|
{
|
||||||
GSIArrayInsertItem(performers, (GSIArrayItem)item, i);
|
GSIArrayInsertItem(performers, (GSIArrayItem)item, i);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue