From: Richard Frith-Macdonald <richard@brainstorm.co.uk>
To: "Yen-Ju Chen" <yjchenx@hotmail.com>
CC: help-gnustep@gnu.org
Subject: Re: How to use [NSURL loadResourceDataNotifyingClient:usingCache:]
?
Date: Tue, 25 Mar 2003 19:21:15 +0000
On Tuesday, March 25, 2003, at 06:29 pm, Yen-Ju Chen wrote:
I tried. It now works as non-blocking.
But the URLClient protocol is never called again.
I attach a test program.
It will run infinitely until the loading is finished.
Hope it help.
Thanks ... please update from CVS again (I made a typo).
Also ... your program needs to run the main runloop while waiting for the
URL operation to complete ...
[[NSRunLoop currentRunLoop] runMode: NSDefaultRunLoopMode beforeDate:
[NSDate distantFuture]];