<!--
{
  "availability" : [
    "macOS: 10.8.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSPageController/navigateForward(to:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSPageController(im)navigateForwardToObject:"
  },
  "title" : "navigateForward(to:)"
}
-->

# navigateForward(to:)

Navigates to the specific object.

```
func navigateForward(to object: Any)
```

## Parameters

`object`

The object to display.

## Discussion

Clears the [`arrangedObjects`](/documentation/AppKit/NSPageController/arrangedObjects) array after the selected index, adds the argument to that array, and sets the [`selectedIndex`](/documentation/AppKit/NSPageController/selectedIndex) to the object’s index.

## See Also

[`takeSelectedIndexFrom(_:)`](/documentation/AppKit/NSPageController/takeSelectedIndexFrom(_:))

Navigates to the selected index, which is taken from the sender.

[`navigateBack(_:)`](/documentation/AppKit/NSPageController/navigateBack(_:))

Navigates backwards in the page controller’s arranged objects array.

[`navigateForward(_:)`](/documentation/AppKit/NSPageController/navigateForward(_:))

Navigates to the next object in the page controller’s arranged objects array, if appropriate.



---

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)