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:
Richard Frith-MacDonald 2000-02-21 14:38:12 +00:00
parent fb65f2b8b6
commit f80442c11b
4 changed files with 10 additions and 4 deletions

View file

@ -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

View file

@ -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

View file

@ -154,7 +154,7 @@ NSString *NSPortTimeoutException
}
- (BOOL) sendBeforeDate: (NSDate*)when
components: (NSArray*)components
components: (NSMutableArray*)components
from: (NSPort*)receivingPort
reserved: (unsigned) length
{

View file

@ -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);