Minor URL modifications

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@7912 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 2000-10-27 15:58:11 +00:00
parent 0289b26003
commit 7341fc3d79
5 changed files with 73 additions and 18 deletions

View file

@ -591,7 +591,6 @@ NSString *NSURLPartKey_query = @"query";
NSLog(@"*_baseURL: %@", [[url baseURL] description]);
}
//-----------------------------------------------------------------------------
- (void) loadResourceDataNotifyingClient: (id)client
usingCache: (BOOL)shouldUseCache
{
@ -635,7 +634,6 @@ NSString *NSURLPartKey_query = @"query";
return data;
}
//-----------------------------------------------------------------------------
- (NSURLHandle*) URLHandleUsingCache: (BOOL)shouldUseCache
{
NSURLHandle *handle = nil;
@ -657,15 +655,13 @@ NSString *NSURLPartKey_query = @"query";
return handle;
}
//-----------------------------------------------------------------------------
- (BOOL) setResourceData: (NSData*)data
{
NSURLHandle *handle = [self URLHandleUsingCache: YES];
return [handle writeData: data];
return (handle == nil) ? NO : [handle writeData: data];
}
//-----------------------------------------------------------------------------
- (id) propertyForKey: (NSString*)propertyKey
{
NSURLHandle *handle = [self URLHandleUsingCache: YES];
@ -673,7 +669,6 @@ NSString *NSURLPartKey_query = @"query";
return [handle propertyForKey: propertyKey];
}
//-----------------------------------------------------------------------------
- (BOOL) setProperty: (id)property
forKey: (NSString*)propertyKey;
{