OSDN Git Service

#selectorを直接使うように変更
authormasakih <masakih@users.sourceforge.jp>
Sat, 28 Oct 2017 11:56:07 +0000 (20:56 +0900)
committermasakih <masakih@users.sourceforge.jp>
Sat, 28 Oct 2017 11:56:07 +0000 (20:56 +0900)
KCD/AppDelegate.swift

index 2448d95..660a3d7 100644 (file)
@@ -8,12 +8,6 @@
 
 import Cocoa
 
-private extension Selector {
-    
-    static let fireInAppDelegate = #selector(AppDelegate.fire(_:))
-    
-}
-
 @NSApplicationMain
 final class AppDelegate: NSObject {
     
@@ -275,7 +269,7 @@ extension AppDelegate: NSApplicationDelegate {
         NSUserNotificationCenter.default.delegate = self
         Timer.scheduledTimer(timeInterval: 0.33,
                              target: self,
-                             selector: .fireInAppDelegate,
+                             selector: #selector(AppDelegate.fire(_:)),
                              userInfo: nil,
                              repeats: true)
     }