([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:
Andrew McCallum 1996-09-24 17:41:03 +00:00
parent 6b01fdd6d0
commit 00e79130d5

View file

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