Inserts new items at the given indexes in the given parent with the specified optional animations.
- macOS 10.7+
Indexes at which to insert items.
The parent for the items, or
nilif the parent is the root.
Animated slide effects used when inserting items.
This method parallels the
insert method of
NSTable and is used in a way similar to the
insert(_: method of
NSMutable. The method does nothing if
parent is not expanded. The actual item values are determined by the data source’s
outline method (which is called only after
end to ensure data source integrity).
You can call this method multiple times within the same
end block; new insertions move previously inserted new items, just like modifying an array. Inserting an index beyond what is available throws an exception.