passepartout-apple/Passepartout/App
Davide De Rosa 3f4b55a003 Implement Mac bundle with system menu
Use bundle as a means to provide Mac APIs to Catalyst app.

In order to cross the @objc wall set by the Mac Bundle mechanism,
Swift structures cannot be used directly and must be bridged
through ObjC facades.

Create NSMenu in MVVM style and install it on app launch. Make
sure to do it in AppDelegate.applicationDidFinishLaunching(),
because doing it as early as in PassepartoutApp.init() would
crash Mac code.

Use .representedObject to own view models.

With menu in place, app can be sent to background when main window
is closed. Requires multiple documents support for app not to die
instantly.
2022-07-16 17:39:42 +02:00
..
Assets.xcassets Use consistent case in assets 2022-05-19 10:33:36 +02:00
Constants Implement Mac bundle with system menu 2022-07-16 17:39:42 +02:00
Context Implement Mac bundle with system menu 2022-07-16 17:39:42 +02:00
de.lproj Reorganize app-specific shared code into AppShared 2022-06-19 14:41:26 +02:00
el.lproj Reorganize app-specific shared code into AppShared 2022-06-19 14:41:26 +02:00
en.lproj Reorganize app-specific shared code into AppShared 2022-06-19 14:41:26 +02:00
es.lproj Reorganize app-specific shared code into AppShared 2022-06-19 14:41:26 +02:00
Extensions Refactor library into domain + impl 2022-06-23 23:31:01 +02:00
fastlane Attempt beta release 2022-05-01 20:44:17 +02:00
Flags.xcassets Merge project into iOS + macOS 2022-04-19 16:14:23 +02:00
fr.lproj Reorganize app-specific shared code into AppShared 2022-06-19 14:41:26 +02:00
InApp Revisit constants structure 2022-06-25 14:36:28 +02:00
Intents Implement Mac bundle with system menu 2022-07-16 17:39:42 +02:00
it.lproj Reorganize app-specific shared code into AppShared 2022-06-19 14:41:26 +02:00
Mac Implement Mac bundle with system menu 2022-07-16 17:39:42 +02:00
nl.lproj Reorganize app-specific shared code into AppShared 2022-06-19 14:41:26 +02:00
pl.lproj Reorganize app-specific shared code into AppShared 2022-06-19 14:41:26 +02:00
Providers.xcassets Merge project into iOS + macOS 2022-04-19 16:14:23 +02:00
pt.lproj Reorganize app-specific shared code into AppShared 2022-06-19 14:41:26 +02:00
Reusable Refactor library into domain + impl 2022-06-23 23:31:01 +02:00
ru.lproj Reorganize app-specific shared code into AppShared 2022-06-19 14:41:26 +02:00
Scripts Rewrite app in SwiftUI 2022-04-12 15:12:45 +02:00
Settings.bundle Merge project into iOS + macOS 2022-04-19 16:14:23 +02:00
sv.lproj Reorganize app-specific shared code into AppShared 2022-06-19 14:41:26 +02:00
Views Mitigate fatalError() in properties, fail gracefully 2022-07-08 20:01:53 +02:00
zh-Hans.lproj Reorganize app-specific shared code into AppShared 2022-06-19 14:41:26 +02:00
App.entitlements Revert "Enable "DNS Settings" capability" 2022-05-04 09:01:27 +02:00
AppDelegate.swift Implement Mac bundle with system menu 2022-07-16 17:39:42 +02:00
Credits.rtf Add credits in Mac about 2022-05-17 19:57:19 +02:00
Info.plist Implement Mac bundle with system menu 2022-07-16 17:39:42 +02:00
PassepartoutApp.swift Implement Mac bundle with system menu 2022-07-16 17:39:42 +02:00