mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
d82bc8341f
commit
7404d641a3
1 changed files with 20 additions and 0 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue