Contents

add(contentsOf:)

Adds objects to the receiver’s content collection.

Declaration

func add(contentsOf objects: [Any])

Discussion

If selectsInsertedObjects is true (the default), the added objects are selected in the array controller.

It is important to note that inserting many objects with selectsInsertedObjects on can cause a significant performance penalty. In this case it is more efficient to use the content method to set the array, or to set selectsInsertedObjects to false before adding the objects with add(contentsOf:).

See Also

Adding and Removing Objects