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

@ -1,3 +1,7 @@
Thu Feb 12 13:31:00 1998 Adam Fedor <fedor@doc.com>
* src/NSDictionary.m ([-copy]): New method.
Mon Feb 9 13:08:27 1998 Adam Fedor <fedor@doc.com>
* AUTHORS, ANNOUNCE, README, INSTALL, STATUS, TODO: New files.

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