func pageController()

in Sample macOS App/AppDelegate.swift [33:42]


  func pageController(_ pageController: NSPageController, viewControllerForIdentifier identifier: String) -> NSViewController {
    switch identifier {
    case "Crashes":
      return CrashViewController(nibName: identifier, bundle: nil)
    case "Analytics":
      return AnalyticsViewController(nibName: identifier, bundle: nil)
    default:
      return NSViewController(nibName: identifier, bundle: nil)
    }
  }