Implemented copy methods for NSImmutableString so that the copied string

does not track the parent


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@12495 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2002-02-11 17:16:24 +00:00
parent d82bc8341f
commit 7404d641a3

View file

@ -3009,6 +3009,26 @@ transmute(ivars self, NSString *aString)
[super dealloc];
}
- (id) copy
{
return [_parent copy];
}
- (id) copyWithZone: (NSZone*)z
{
return [_parent copyWithZone: z];
}
- (id) mutableCopy
{
return [_parent mutableCopy];
}
- (id) mutableCopyWithZone: (NSZone*)z
{
return [_parent mutableCopyWithZone: z];
}
- (void) encodeWithCoder: (NSCoder*)aCoder
{
[_parent encodeWithCoder: aCoder];