Add missing method to CPDictionary.

This commit is contained in:
Ross Boucher committed 2008-12-17 16:49:31 -08:00
1 parent 5eb7be054e
commit bbd632fa34
1 file changed
+17
+17
View File
@@ -408,6 +408,23 @@
}
*/
/*!
Take all the key/value pairs in aDictionary and apply them to this dictionary.
*/
- (void)setValuesForKeysWithDictionary:(CPDictionary)aDictionary
{
if (!aDictionary)
return;
var allKeys = [aDictionary allKeys];
for (var i=0, count = [allKeys count]; i<count; i++)
{
var thisKey = allKeys[i];
[selt setOject:[aDictionary objectForKey:thisKey] forKey:thisKey];
}
}
/*!
Returns a human readable description of the dictionary.
*/