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:
Adam Fedor 1998-02-12 18:31:59 +00:00
parent 5ad4c23b77
commit 754c45b180
2 changed files with 9 additions and 0 deletions

View file

@ -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 */