Skip to content

Commit

Permalink
Add 2 missing methods on CPDictionary.
Browse files Browse the repository at this point in the history
[cappuccino#157 state:resolved milestone:0.6.1]
  • Loading branch information
Ross Boucher committed Dec 18, 2008
1 parent 8fa5217 commit bc30541
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Foundation/CPDictionary.j
Expand Up @@ -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)
{
Expand Down

0 comments on commit bc30541

Please sign in to comment.