mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-30 02:12:03 +00:00
Add copy method on CPDictionary
This commit is contained in:
1 parent
5023588af4
commit
7568d91d28
1 file changed
+8
@@ -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
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user