<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSOrderedCollectionChange/init(object:type:index:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSOrderedCollectionChange(im)initWithObject:type:index:"
  },
  "title" : "init(object:type:index:)"
}
-->

# init(object:type:index:)

Creates a change object that represents inserting or removing an object from an ordered collection at a specific index.

```
convenience init(object anObject: Any?, type: NSCollectionChangeType, index: Int)
```

## Parameters

`anObject`

An optional object the change will remove or insert.

`type`

The type of change.

`index`

The index location within an ordered collection where the change applies.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)