mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-02 01:21:08 +00:00
([NSString -copy]): New method. Now -copy sent to strings should
work. (Added temporarily until this problem is fixed by me overhaul of the string classes to separate Core and NonCore methods.) git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1827 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
dd786e48c9
commit
d23ce8498e
1 changed files with 9 additions and 0 deletions
|
@ -1201,6 +1201,15 @@ handle_printf_atsign (FILE *stream,
|
||||||
return [[[self class] allocWithZone:zone] initWithString:self];
|
return [[[self class] allocWithZone:zone] initWithString:self];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* xxx Temporarily put this NSObject-like implementation here, so
|
||||||
|
we don't get String's Collection implementation.
|
||||||
|
When we separate Core from NonCore methods, this problem will
|
||||||
|
go away. */
|
||||||
|
- copy
|
||||||
|
{
|
||||||
|
return [self copyWithZone: NS_NOZONE];
|
||||||
|
}
|
||||||
|
|
||||||
- mutableCopyWithZone: (NSZone*)zone
|
- mutableCopyWithZone: (NSZone*)zone
|
||||||
{
|
{
|
||||||
return [[[[self class] _mutableConcreteClass] allocWithZone:zone]
|
return [[[[self class] _mutableConcreteClass] allocWithZone:zone]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue