Add copy method on CPDictionary

This commit is contained in:
Ross Boucher committed 2008-10-23 15:36:03 -07:00
1 parent 5023588af4
commit 7568d91d28
1 file changed
+8
+8
View File
@@ -164,6 +164,14 @@ import "CPException.j"
return self;
}
/*!
return a copy of the receiver (does not deep copy the objects contained in the dictionary).
*/
- (CPDictionary)copy
{
return [CPDictionary dictionaryWithDictionary:self];
}
/*!
Returns the number of entries in the dictionary
*/