mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-13 18:23:50 +00:00
Implement objectsAtIndexes on _CPObservableArray to return another _CPObservableArray instance
This commit is contained in:
1 parent
71408e7c3a
commit
60dd1863b3
1 file changed
+5
@@ -455,6 +455,11 @@ var CPObjectControllerObjectClassNameKey = @"CPObjectControllerOb
|
||||
[super removeObjectAtIndex:anIndex];
|
||||
}
|
||||
|
||||
- (_CPObservableArray)objectsAtIndexes:(CPIndexSet)theIndexes
|
||||
{
|
||||
return [_CPObservableArray arrayWithArray:[super objectsAtIndexes:theIndexes]];
|
||||
}
|
||||
|
||||
- (void)addObject:(id)anObject
|
||||
{
|
||||
[self insertObject:anObject atIndex:[self count]];
|
||||
|
||||
Reference in new issue
Block a user