mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 04:57:03 +00:00
fix CPArray+KVO addObjects inserting objects at beginning of array one by one
This commit is contained in:
@@ -242,8 +242,7 @@
|
||||
var index = 0,
|
||||
count = [anArray count];
|
||||
|
||||
for (; index < count; ++index)
|
||||
[self insertObject:[anArray objectAtIndex:index] atIndex:index];
|
||||
[self insertObjects:anArray atIndexes:[CPIndexSet indexSetWithIndexesInRange:CPMakeRange([self count], count)]];
|
||||
}
|
||||
|
||||
- (void)insertObject:(id)anObject atIndex:(unsigned)anIndex
|
||||
|
||||
Reference in New Issue
Block a user