[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bugs #8901] Always the same data with [NSURL loadResourceDataNotifyingC
From: |
anonymous |
Subject: |
[bugs #8901] Always the same data with [NSURL loadResourceDataNotifyingClient:usingCache:NO] |
Date: |
Wed, 12 May 2004 08:50:48 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; U; PPC Mac OS X; de-ch) AppleWebKit/124 (KHTML, like Gecko) Safari/125.1 |
This mail is an automated notification from the bugs tracker
of the project: GNUstep.
/**************************************************************************/
[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 08:31
Category: Base/Foundation
Severity: 5 - Average
Item Group: Bug
Resolution: None
Assigned to: None
Status: Open
Summary: Always the same data with [NSURL
loadResourceDataNotifyingClient:usingCache:NO]
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.
For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=8901>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bugs #8901] Always the same data with [NSURL loadResourceDataNotifyingClient:usingCache:NO],
anonymous <=