cost 69 ms
最小化 macOS 應用程序 + 分布式通知中心(macOS 上的后台模式)

[英]Minimized macOS application + distributedNotificationCenter (background mode on macOS)

我已經實現了一個 macOS 應用 + 擴展。 擴展可能會通過 DistributedNotificationCenter.default() 和 postNotificationName(_ name: ...) 向應用發送通知。 這些問題與 macOS 上的應用程序生命周期有關 - 如果用戶最 ...

未在 Swift 命令行工具中接收 DistributedNotificationCenter

[英]Not receiving DistributedNotificationCenter in Swift Command Line Tool

我正在 node.js 中構建一個小應用程序,它使用execa讀取來自已編譯 Swift 應用程序的打印語句。 這個想法類似於 Sindre Sorhus(還有誰!?)請勿打擾 雖然我不是 Swift 程序員,但我整理了一個非常簡單的解決方案。 二進制文件是通過從 CL 運行swift build ...

分布式通知不再適用於 Catalina

[英]Distributed notification no longer working in Catalina

我使用分布式通知中心在 safari 擴展應用程序和 MacOS 應用程序之間傳輸數據。 我使用DistributedNotificationCenter.default().addObserver和特定的通知名稱,並使用相同的名稱從 MacOS 應用程序發布通知DistributedNotific ...


 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM