mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
Send URLs over DO bycopy.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28259 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e8db6ca052
commit
487090a426
2 changed files with 11 additions and 0 deletions
|
@ -46,6 +46,7 @@ function may be incorrect
|
|||
#import "Foundation/NSLock.h"
|
||||
#import "Foundation/NSMapTable.h"
|
||||
#import "Foundation/NSObject.h"
|
||||
#import "Foundation/NSPortCoder.h"
|
||||
#import "Foundation/NSRunLoop.h"
|
||||
#import "Foundation/NSString.h"
|
||||
#import "Foundation/NSURL.h"
|
||||
|
@ -1535,6 +1536,15 @@ static unsigned urlAlign;
|
|||
return _urlString;
|
||||
}
|
||||
|
||||
/* Encode bycopy unless explicitly requested otherwise.
|
||||
*/
|
||||
- (id) replacementObjectForPortCoder: (NSPortCoder*)aCoder
|
||||
{
|
||||
if ([aCoder isByref] == NO)
|
||||
return self;
|
||||
return [super replacementObjectForPortCoder: aCoder];
|
||||
}
|
||||
|
||||
/**
|
||||
* Loads the resource data for the represented URL and returns the result.
|
||||
* The shouldUseCache flag determines whether data previously retrieved by
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue