|
From: | Yen-Ju Chen |
Subject: | Re: How to use [NSURL loadResourceDataNotifyingClient:usingCache:] ? |
Date: | Tue, 25 Mar 2003 12:53:23 -0500 |
Oh~~ I assumed it is non-blocking because it looks like. :D Here is the Cocoa's document: "loadResourceDataNotifyingClient:usingCache: Loads the receiver¡¦s resource data in the background. client is notifiedof the receiver¡¦s progress loading the resource data using the NSURLClient
informal protocol. The NSURLClient messages are delivered on the current thread and require the run loop to be running. shouldUseCache controlswhether the URL should use cached resource data from an already loaded URL
that refers to the same resource. The receiver can perform only one background load at a time." It does mention "load data in background", and "only one background load at a time". Yen-Ju
From: Richard Frith-Macdonald <richard@brainstorm.co.uk> To: "Yen-Ju Chen" <yjchenx@hotmail.com> CC: help-gnustep@gnu.orgSubject: Re: How to use [NSURL loadResourceDataNotifyingClient:usingCache:] ?Date: Tue, 25 Mar 2003 17:38:22 +0000 On Tuesday, March 25, 2003, at 04:53 pm, Yen-Ju Chen wrote:Thanx a lot. It works. But I notice it doesn't work in the background. Is it supposed to be non-blocking ?I don't know ... It's written to block.I guess I'll have to check the apple implementation and change the GNUstep one to match if necessary.
_________________________________________________________________MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus
[Prev in Thread] | Current Thread | [Next in Thread] |