|
|
@ -42,7 +42,6 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDele |
|
|
|
var nc = NSUserNotificationCenter.default |
|
|
|
var clientListener: NSXPCListener! |
|
|
|
var receiver: pEpNotification! |
|
|
|
var obj: pEpNotification! |
|
|
|
|
|
|
|
func notifyDownload(_ type: Int, withName: NSString, withFilename: NSString) |
|
|
|
{ |
|
|
@ -97,7 +96,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDele |
|
|
|
|
|
|
|
@objc func listener(_ listener: NSXPCListener, shouldAcceptNewConnection newConnection: NSXPCConnection) -> Bool { |
|
|
|
newConnection.exportedInterface = NSXPCInterface.init(with: pEpNotificationProtocol.self) |
|
|
|
obj = pEpNotification() |
|
|
|
let obj = pEpNotification() |
|
|
|
obj.delegate = self |
|
|
|
newConnection.exportedObject = obj; |
|
|
|
newConnection.resume() |
|
|
|