CPArray mutableCopy.

This commit is contained in:
Alexander Ljungberg
2011-06-02 15:09:54 -04:00
parent 2a3b9e13c3
commit 0a9c9741e8
2 changed files with 24 additions and 1 deletions
+11
View File
@@ -397,6 +397,17 @@
@end
@implementation CPArray (CPMutableCopying)
- (id)mutableCopy
{
var r = [CPMutableArray new];
[r addObjectsFromArray:self];
return r;
}
@end
var selectorCompare = function selectorCompare(object1, object2, selector)
{
return [object1 performSelector:selector withObject:object2];