mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-10 16:20:42 +00:00
Bugfix for removing actions from runloop
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@6045 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
fb65f2b8b6
commit
f80442c11b
4 changed files with 10 additions and 4 deletions
|
@ -1,3 +1,9 @@
|
|||
Mon Feb 21 13:44:00 2000 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
* Source/NSRunLoop.m: Use sel_eq() for selector comparison so that
|
||||
we are guaranteed to match correctly when removing actions from the
|
||||
runloop.
|
||||
|
||||
Fri Feb 6 14:54:00 2000 Manuel Guesdon <mguesdon@sbuilders.com>
|
||||
|
||||
* Source/NSCalendarDate.m: handle nil and empry string in
|
||||
|
|
|
@ -62,7 +62,7 @@ extern NSString *NSPortTimeoutException; /* OPENSTEP */
|
|||
forMode: (NSString*)aMode;
|
||||
- (unsigned) reservedSpaceLength;
|
||||
- (BOOL) sendBeforeDate: (NSDate*)when
|
||||
components: (NSArray*)components
|
||||
components: (NSMutableArray*)components
|
||||
from: (NSPort*)receivingPort
|
||||
reserved: (unsigned) length;
|
||||
#endif
|
||||
|
|
|
@ -154,7 +154,7 @@ NSString *NSPortTimeoutException
|
|||
}
|
||||
|
||||
- (BOOL) sendBeforeDate: (NSDate*)when
|
||||
components: (NSArray*)components
|
||||
components: (NSMutableArray*)components
|
||||
from: (NSPort*)receivingPort
|
||||
reserved: (unsigned) length
|
||||
{
|
||||
|
|
|
@ -321,7 +321,7 @@ static NSComparisonResult aSort(GSIArrayItem i0, GSIArrayItem i1)
|
|||
{
|
||||
GSTimedPerformer *p = array[count];
|
||||
|
||||
if (p->selector == aSelector && p->target == target
|
||||
if (p->target == target && sel_eq(p->selector, aSelector)
|
||||
&& [p->argument isEqual: arg])
|
||||
{
|
||||
[perf removeObjectAtIndex: count];
|
||||
|
@ -1363,7 +1363,7 @@ id NSDefaultRunLoopMode = @"NSDefaultRunLoopMode";
|
|||
GSRunLoopPerformer *p;
|
||||
|
||||
p = GSIArrayItemAtIndex(performers, count).obj;
|
||||
if (p->selector == aSelector && p->target == target
|
||||
if (p->target == target && sel_eq(p->selector, aSelector)
|
||||
&& p->argument == argument)
|
||||
{
|
||||
GSIArrayRemoveItemAtIndex(performers, count);
|
||||
|
|
Loading…
Reference in a new issue