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:
Richard Frith-MacDonald 2009-04-27 20:58:17 +00:00
parent e8db6ca052
commit 487090a426
2 changed files with 11 additions and 0 deletions

View file

@ -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