mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-05 10:23:39 +00:00
CPArray mutableCopy.
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user