Browse Source

...

works_for_me
Volker Birk 2 years ago
parent
commit
652ac8b70c
2 changed files with 2 additions and 3 deletions
  1. +1
    -2
      pEpNotifications/pEpNotifications/AppDelegate.swift
  2. +1
    -1
      pEpNotifications/pEpNotifications/pEpNotifications.entitlements

+ 1
- 2
pEpNotifications/pEpNotifications/AppDelegate.swift View File

@ -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()


+ 1
- 1
pEpNotifications/pEpNotifications/pEpNotifications.entitlements View File

@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<false/>
<true/>
<key>com.apple.security.temporary-exception.mach-lookup.global-name</key>
<array>
<string>foundation.pEp.adapter.macOS</string>


Loading…
Cancel
Save