mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
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:
parent
0289b26003
commit
7341fc3d79
5 changed files with 73 additions and 18 deletions
|
@ -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;
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue