source: launchers/macosx/I2PLauncher/userinterface/PopoverViewController.swift @ 3b38f5a

Last change on this file since 3b38f5a was 3b38f5a, checked in by meeh <meeh@…>, 21 months ago

Mac OS X Launcher:

  • In general bugfixes
  • Introduced event manager for better control flow
  • Splitted RouterStatusView? to own file
  • Added shell script to setup and produce dmg file
  • Property mode set to 100644
File size: 981 bytes
Line 
1//
2//  PopoverViewController.swift
3//  I2PLauncher
4//
5//  Created by Mikal Villa on 18/09/2018.
6//  Copyright © 2018 The I2P Project. All rights reserved.
7//
8
9import Cocoa
10
11class PopoverViewController: NSViewController {
12 
13  required init?(coder: NSCoder) {
14    super.init(coder: coder)
15  }
16 
17 
18  override func viewDidLoad() {
19    super.viewDidLoad()
20    // Do view setup here.
21  }
22}
23
24
25extension PopoverViewController {
26  static func freshController() -> PopoverViewController {
27    let storyboard = NSStoryboard(name: "Storyboard", bundle: Bundle.main)
28    //2.
29    let identifier = NSStoryboard.SceneIdentifier(stringLiteral: "PopoverView")
30    //3.
31    guard let viewcontroller = storyboard.instantiateController(withIdentifier: identifier as String) as? PopoverViewController else {
32      fatalError("Why cant i find PopoverViewController? - Check PopoverViewController.storyboard")
33    }
34    //let viewcontroller = PopoverViewController()
35    return viewcontroller
36  }
37}
38
Note: See TracBrowser for help on using the repository browser.