Remove references to NSArray

This commit is contained in:
Ross Boucher
2009-05-19 12:10:06 -07:00
parent 8f8e2343a0
commit a7ed62a108
+2 -2
View File
@@ -447,7 +447,7 @@ kvoOperators["sum"] = function sumOperator(self, _cmd, param)
-(void)addObserver:(id)observer forKeyPath:(CPString)aKeyPath options:(unsigned)options context:(id)context
{
if ([isa instanceMethodForSelector:_cmd]==[NSArray instanceMethodForSelector:_cmd])
if ([isa instanceMethodForSelector:_cmd] === [CPArray instanceMethodForSelector:_cmd])
[CPException raise:CPInvalidArgumentException reason:"Unsupported method on CPArray"];
else
[super addObserver:observer forKeyPath:aKeyPath options:options context:context];
@@ -455,7 +455,7 @@ kvoOperators["sum"] = function sumOperator(self, _cmd, param)
-(void)removeObserver:(id)observer forKeyPath:(CPString)aKeyPath
{
if ([isa instanceMethodForSelector:_cmd]==[NSArray instanceMethodForSelector:_cmd])
if ([isa instanceMethodForSelector:_cmd] === [CPArray instanceMethodForSelector:_cmd])
[CPException raise:CPInvalidArgumentException reason:"Unsupported method on CPArray"];
else
[super removeObserver:observer forKeyPath:aKeyPath];