[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bugs #8901] Always the same data with [NSURL loadResourceDataNotifyingC

From: Richard Frith-Macdonald
Subject: [bugs #8901] Always the same data with [NSURL loadResourceDataNotifyingClient:usingCache:NO]
Date: Thu, 13 May 2004 05:08:50 -0400
User-agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/124 (KHTML, like Gecko) Safari/125.1

This mail is an automated notification from the bugs tracker
 of the project: GNUstep.

[bugs #8901] Latest Modifications:

Changes by: 
                Richard Frith-Macdonald <address@hidden>
                Thu 05/13/04 at 09:06 (GMT)

            What     | Removed                   | Added
              Status | Open                      | Closed

[bugs #8901] Full Item Snapshot:

URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=8901>
Project: GNUstep
Submitted by: 0
On: Wed 05/12/04 at 12:31

Category:  Base/Foundation
Severity:  5 - Average
Item Group:  Bug
Resolution:  Fixed
Assigned to:  None
Status:  Closed

Summary:  Always the same data with [NSURL 

Original Submission:  I always get the same data, when doing:

- (void)fetch
        [anURL loadResourceDataNotifyingClient:self usingCache:NO];

- (void)URLResourceDidFinishLoading:(NSURL *)anURL
        NSLog([[anURL resourceDataUsingCache:YES] asciiStringValue]]);

I mean, as I understood the documentation, when calling 
-loadResourceDataNotifyingClient:usingCache:NO, with NO as the cache flag, it 
should load the data in the background and put it into its cache. So that when 
-URLResourceDidFinishLoading: is called, one can retrieve, what has been loaded 
by calling -resourceDataUsingCache:YES. (How could one retrieve, what has been 
loaded otherwise?)
But I always get the same data and I think, I know why: In 
GSHTTPURLHandle.m:283, the URL-handle is not put into the cache, because 
'usingCache' is NO. But using the cache and filling the cache is not the same, 
but seems to me as if treated the same way here.
I have removed this condition and it works at my place.

Follow-up Comments

Date: Wed 05/12/04 at 17:23         By: CaS
Thanks for the bug report ... I believe I have fixed the problem in CVS.
The fix I used was to modify NSURL.m to ask for a handle which uses the cache 
irrespective of the flag supplied to 
-loadResourceDataNotifyingClient:usingCache:, also to try to return cached data 
if the flag is YES

For detailed info, follow this link:

  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]