Replace nil with [NSDate distantFuture] in calls to nextEventMatchingMask:...dequeue:.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28025 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2009-03-02 16:26:23 +00:00
parent cfea3dbe6b
commit 7c2e8efcd8
11 changed files with 28 additions and 14 deletions

View file

@ -413,7 +413,7 @@ static NSColor *titleColor[3];
currentEvent = [_window nextEventMatchingMask: mask
untilDate: nil
untilDate: [NSDate distantFuture]
inMode: NSEventTrackingRunLoopMode
dequeue: YES];
} while ([currentEvent type] != NSLeftMouseUp);
@ -510,7 +510,7 @@ calc_new_frame(NSRect frame, NSPoint point, NSPoint firstPoint,
break;
currentEvent = [_window nextEventMatchingMask: mask
untilDate: nil
untilDate: [NSDate distantFuture]
inMode: NSEventTrackingRunLoopMode
dequeue: YES];
} while ([currentEvent type] != NSLeftMouseUp);