diff --git a/features/conversation-assistant/macos/Sources/Views/MenuBarView.swift b/features/conversation-assistant/macos/Sources/Views/MenuBarView.swift index 053bf29a4..c0fddf0b8 100644 --- a/features/conversation-assistant/macos/Sources/Views/MenuBarView.swift +++ b/features/conversation-assistant/macos/Sources/Views/MenuBarView.swift @@ -39,7 +39,7 @@ struct MenuBarView: View { Text(AppVersion.displayVersion) .font(.caption2) - .foregroundColor(.tertiary) + .foregroundStyle(.tertiary) Spacer() diff --git a/features/conversation-assistant/macos/Sources/Views/MenuBarViewModel.swift b/features/conversation-assistant/macos/Sources/Views/MenuBarViewModel.swift index 04aaa99d8..e48cb37b3 100644 --- a/features/conversation-assistant/macos/Sources/Views/MenuBarViewModel.swift +++ b/features/conversation-assistant/macos/Sources/Views/MenuBarViewModel.swift @@ -141,11 +141,11 @@ class MenuBarViewModel: ObservableObject { // Activate the app (required for menu bar apps to show settings) NSApp.activate(ignoringOtherApps: true) // Open settings window - macOS 14+ renamed to showSettingsWindow, older versions use showPreferencesWindow - // Note: Using string-based selector since #selector requires @objc exposure which NSApplication methods don't have + // Note: Using double-paren selector format to suppress warnings about private Objective-C selectors if #available(macOS 14, *) { - NSApp.sendAction(Selector("showSettingsWindow:"), to: nil, from: nil) + NSApp.sendAction(Selector(("showSettingsWindow:")), to: nil, from: nil) } else { - NSApp.sendAction(Selector("showPreferencesWindow:"), to: nil, from: nil) + NSApp.sendAction(Selector(("showPreferencesWindow:")), to: nil, from: nil) } }