mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Improve load in foreground
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25247 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
890dc7c1e0
commit
eca23e28ff
3 changed files with 11 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
2007-06-13 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/NSURLHandle.m: ([loadInForeground]) return as soon as load
|
||||
is complete, rather than waiting for up to a second.
|
||||
|
||||
2007-06-12 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSPredicate.m: Fake like and matches by using
|
||||
|
|
|
@ -995,11 +995,13 @@ static NSComparisonResult tSort(GSIArrayItem i0, GSIArrayItem i1)
|
|||
}
|
||||
|
||||
/**
|
||||
* Calls -acceptInputForMode:beforeDate: to run the loop once.<br />
|
||||
* Calls -limitDateForMode: to determine if a timeout occurs before the
|
||||
* specified date, then calls -acceptInputForMode:beforeDate: to run the
|
||||
* loop once.<br />
|
||||
* The specified date may be nil ... in which case the loop runs
|
||||
* until the limit date of the first input or timeout.<br />
|
||||
* If the specified date is in the past, runs the loop once only, to
|
||||
* handle any events already available.<br />
|
||||
* If the specified date is in the past, this runs the loop once only,
|
||||
* to handle any events already available.<br />
|
||||
* If there are no input sources in mode, returns NO without running the loop,
|
||||
* otherwise returns YES.
|
||||
*/
|
||||
|
|
|
@ -481,7 +481,7 @@ static Class NSURLHandleClass = 0;
|
|||
NSDate *limit;
|
||||
|
||||
limit = [[NSDate alloc] initWithTimeIntervalSinceNow: 1.0];
|
||||
[loop runUntilDate: limit];
|
||||
[loop runMode: NSDefaultRunLoopMode beforeDate: limit];
|
||||
RELEASE(limit);
|
||||
}
|
||||
return _data;
|
||||
|
|
Loading…
Reference in a new issue