Contents

pageController(_:identifierFor:)

Return the identifier of the view controller that owns a view to display the object.

Declaration

@MainActor optional func pageController(_ pageController: NSPageController, identifierFor object: Any) -> NSPageController.ObjectIdentifier

Parameters

  • pageController:

    The page controller.

  • object:

    The object to display.

Return Value

Returns a string identifier for the view controller for the specified object.

Discussion

If pageController does not have an unused view controller for this identifier, the you will be asked to create one via pageController(_:viewControllerForIdentifier:).

See Also

Managing View Controllers