1
0
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:
2021-12-20 18:39:59 +01:00
parent 7a3dc9a145
commit acdcce7f7a
5 changed files with 43 additions and 2 deletions

View File

@@ -7,6 +7,7 @@
import Foundation
import AppKit
import PMCommon
class Actions {

View 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)
}
}

View File

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