mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-05 00:22:58 +00:00
fix CPArray+KVO addObjects inserting objects at beginning of array one by one
This commit is contained in:
1 parent
ddad10b615
commit
213fde04fe
1 file changed
+1
-2
@@ -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