mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +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
6b01fdd6d0
commit
00e79130d5
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];
|
||||
}
|
||||
|
||||
/* 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
|
||||
{
|
||||
return [[[[self class] _mutableConcreteClass] allocWithZone:zone]
|
||||
|
|
Loading…
Reference in a new issue