---
title: "takeSelectedIndexFrom(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nspagecontroller/takeselectedindexfrom(_:)"
---

# takeSelectedIndexFrom(_:)

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

## Declaration

```swift
@IBAction func takeSelectedIndexFrom(_ sender: Any?)
```

## Parameters

- `sender`: The control that invoked the action.

## Discussion

Discussion When invoked, this method causes the page controller’s view to display the object specified by the value taken from the sender control. This method is animated and invokes the delegate’s pageControllerWillStartLiveTransition(_:) and pageControllerDidEndLiveTransition(_:) methods.

## See Also

### Related Documentation

- [navigateForward(to:)](appkit/nspagecontroller/navigateforward(to:).md)

### Page Controller Navigation

- [navigateBack(_:)](appkit/nspagecontroller/navigateback(_:).md)
- [navigateForward(_:)](appkit/nspagecontroller/navigateforward(_:).md)
