mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +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
74a3bb4f3e
commit
6feb89546b
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