mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
(mutableCopy): New method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@132 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
c490faa544
commit
c08e22948d
1 changed files with 6 additions and 1 deletions
|
@ -255,7 +255,12 @@
|
|||
|
||||
- copy
|
||||
{
|
||||
return [[[self class] alloc] initWithCString:[self cString]];
|
||||
return [[[self class] alloc] initWithString:self];
|
||||
}
|
||||
|
||||
- mutableCopy
|
||||
{
|
||||
return [[MutableCString alloc] initWithString:self];
|
||||
}
|
||||
|
||||
// TESTING;
|
||||
|
|
Loading…
Reference in a new issue