mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-20 14:33:04 +01:00
Fix crashing bug. Now the app window appears! Without any data in it, sure, but hey.
This commit is contained in:
parent
b8f69779ed
commit
33e6e72d21
@ -14,15 +14,12 @@ import Account
|
|||||||
@objc class SidebarViewController: NSViewController, NSOutlineViewDelegate, NSOutlineViewDataSource {
|
@objc class SidebarViewController: NSViewController, NSOutlineViewDelegate, NSOutlineViewDataSource {
|
||||||
|
|
||||||
@IBOutlet var outlineView: NSOutlineView!
|
@IBOutlet var outlineView: NSOutlineView!
|
||||||
var treeController: TreeController!
|
let treeController = TreeController(delegate: SidebarTreeControllerDelegate())
|
||||||
let treeControllerDelegate = SidebarTreeControllerDelegate()
|
|
||||||
|
|
||||||
//MARK: NSViewController
|
//MARK: NSViewController
|
||||||
|
|
||||||
override func viewDidLoad() {
|
override func viewDidLoad() {
|
||||||
|
|
||||||
treeController = TreeController(delegate: treeControllerDelegate)
|
|
||||||
|
|
||||||
NotificationCenter.default.addObserver(self, selector: #selector(unreadCountDidChange(_:)), name: .UnreadCountDidChange, object: nil)
|
NotificationCenter.default.addObserver(self, selector: #selector(unreadCountDidChange(_:)), name: .UnreadCountDidChange, object: nil)
|
||||||
// NotificationCenter.default.addObserver(self, selector: #selector(folderChildrenDidChange(_:)), name: NSNotification.Name(rawValue: FolderChildrenDidChangeNotification), object: nil)
|
// NotificationCenter.default.addObserver(self, selector: #selector(folderChildrenDidChange(_:)), name: NSNotification.Name(rawValue: FolderChildrenDidChangeNotification), object: nil)
|
||||||
NotificationCenter.default.addObserver(self, selector: #selector(userDidAddFeed(_:)), name: UserDidAddFeedNotification, object: nil)
|
NotificationCenter.default.addObserver(self, selector: #selector(userDidAddFeed(_:)), name: UserDidAddFeedNotification, object: nil)
|
||||||
|
Loading…
Reference in New Issue
Block a user