mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-11-09 05:40:07 +01:00
✨ Add scheme to support inter-app communication (#59)
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
|
||||
import Foundation
|
||||
import AppKit
|
||||
import PMCommon
|
||||
|
||||
class Actions {
|
||||
|
||||
|
||||
19
phpmon/Domain/Core/AppDelegate+InterApp.swift
Normal file
19
phpmon/Domain/Core/AppDelegate+InterApp.swift
Normal file
@@ -0,0 +1,19 @@
|
||||
//
|
||||
// AppDelegate+InterApp.swift
|
||||
// PHP Monitor
|
||||
//
|
||||
// Created by Nico Verbruggen on 20/12/2021.
|
||||
// Copyright © 2021 Nico Verbruggen. All rights reserved.
|
||||
//
|
||||
|
||||
import Cocoa
|
||||
import Foundation
|
||||
|
||||
extension AppDelegate {
|
||||
|
||||
func application(_ application: NSApplication, open urls: [URL]) {
|
||||
print(urls)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -18,6 +18,19 @@
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>$(MARKETING_VERSION)</string>
|
||||
<key>CFBundleURLTypes</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>CFBundleTypeRole</key>
|
||||
<string>Viewer</string>
|
||||
<key>CFBundleURLName</key>
|
||||
<string>com.nicoverbruggen.phpmon</string>
|
||||
<key>CFBundleURLSchemes</key>
|
||||
<array>
|
||||
<string>phpmon</string>
|
||||
</array>
|
||||
</dict>
|
||||
</array>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>$(CURRENT_PROJECT_VERSION)</string>
|
||||
<key>LSApplicationCategoryType</key>
|
||||
|
||||
Reference in New Issue
Block a user