mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-14 02:33:50 +00:00
Add missing method to CPDictionary.
This commit is contained in:
1 parent
5eb7be054e
commit
bbd632fa34
1 file changed
+17
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user