From 76b49837a7fd14cfe746a20d7686194207cdbcf9 Mon Sep 17 00:00:00 2001 From: masakih Date: Tue, 3 Oct 2017 22:08:58 +0900 Subject: [PATCH] =?utf8?q?keyPath=E3=81=AE=E6=8C=87=E5=AE=9A=E3=81=8C?= =?utf8?q?=E8=AA=A4=E3=81=A3=E3=81=A6=E3=81=84=E3=81=9F=E3=81=AE=E3=81=A7?= =?utf8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- KCD/AirBaseWindowController.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/KCD/AirBaseWindowController.swift b/KCD/AirBaseWindowController.swift index 2b909353..651d1c29 100644 --- a/KCD/AirBaseWindowController.swift +++ b/KCD/AirBaseWindowController.swift @@ -52,12 +52,12 @@ final class AirBaseWindowController: NSWindowController { super.windowDidLoad() - airBaseController.addObserver(self, forKeyPath: #keyPath(airBaseController.content), context: nil) + airBaseController.addObserver(self, forKeyPath: #keyPath(NSArrayController.content), context: nil) } override func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey: Any]?, context: UnsafeMutableRawPointer?) { - guard keyPath == #keyPath(airBaseController.content) else { + guard keyPath == #keyPath(NSArrayController.content) else { super.observeValue(forKeyPath: keyPath, of: object, change: change, context: context) return -- 2.11.0