Fix remaining concurrency warnings in AppDelegate (Mac).

This commit is contained in:
Brent Simmons 2024-03-24 12:20:20 -07:00
parent b94935998b
commit 0f639085d6

View File

@ -20,14 +20,16 @@ import Foundation
import Articles import Articles
protocol AppDelegateAppleEvents { protocol AppDelegateAppleEvents {
func installAppleEventHandlers()
func getURL(_ event: NSAppleEventDescriptor, _ withReplyEvent: NSAppleEventDescriptor) @MainActor func installAppleEventHandlers()
@MainActor func getURL(_ event: NSAppleEventDescriptor, _ withReplyEvent: NSAppleEventDescriptor)
} }
protocol ScriptingAppDelegate { protocol ScriptingAppDelegate {
var scriptingCurrentArticle: Article? {get}
var scriptingSelectedArticles: [Article] {get} @MainActor var scriptingCurrentArticle: Article? {get}
var scriptingMainWindowController:ScriptingMainWindowController? {get} @MainActor var scriptingSelectedArticles: [Article] {get}
@MainActor var scriptingMainWindowController:ScriptingMainWindowController? {get}
} }
extension AppDelegate : AppDelegateAppleEvents { extension AppDelegate : AppDelegateAppleEvents {