Add 2 missing methods on CPDictionary.

[#157 state:resolved milestone:0.6.1]
This commit is contained in:
Ross Boucher
2008-12-17 18:21:29 -08:00
parent 8fa5217318
commit bc30541b9c
+11
View File
@@ -359,6 +359,17 @@
{
dictionary_removeValue(self, aKey);
}
/*!
Removes each entry in allKeys from the receiver.
@param allKeys an array of keys that will be removed from the dictionary
*/
- (void)removeObjectsForKeys:(CPArray)allKeys
{
for (var i=0, count = allKeys.length; i<count; i++)
dictionary_removeValue(self, allKeys[i]);
}
/*
Instance.removeObjectForKey(aKey)
{