mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
Add copy method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2747 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5ad4c23b77
commit
754c45b180
2 changed files with 9 additions and 0 deletions
|
@ -359,6 +359,11 @@ compareIt(id o1, id o2, void* context)
|
|||
return [[self description] writeToFile:path atomically:useAuxiliaryFile];
|
||||
}
|
||||
|
||||
- copy
|
||||
{
|
||||
return [self copyWithZone: [self zone]];
|
||||
}
|
||||
|
||||
- copyWithZone: (NSZone*)z
|
||||
{
|
||||
/* a deep copy */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue