From 37e77a9596433859fe108ee32aa2db88eae0184c Mon Sep 17 00:00:00 2001 From: Nate Weaver Date: Mon, 21 Oct 2019 17:24:15 -0500 Subject: [PATCH] Make delegate-less init() fail since a delegate is currently required --- Mac/MainWindow/OPML/ExportOPMLAccessoryViewController.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Mac/MainWindow/OPML/ExportOPMLAccessoryViewController.swift b/Mac/MainWindow/OPML/ExportOPMLAccessoryViewController.swift index 6e94a5206..3c7779198 100644 --- a/Mac/MainWindow/OPML/ExportOPMLAccessoryViewController.swift +++ b/Mac/MainWindow/OPML/ExportOPMLAccessoryViewController.swift @@ -23,7 +23,9 @@ class ExportOPMLAccessoryViewController: NSViewController { self.delegate = delegate } - // MARK: - NSViewController + init() { + preconditionFailure("init() without delegate not implemented by design.") + } required init?(coder: NSCoder) { preconditionFailure("ExportOPMLAccessoryView.init(coder) not implemented by design.")