diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 16611e276..f5187fe6a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,8 +39,8 @@ jobs: - name: Generate Secrets Sources run: PROJECT_DIR="$GITHUB_WORKSPACE" ./buildscripts/updateSecrets.sh - - name: Select Xcode 26.3 - run: sudo xcode-select -s /Applications/Xcode_26.3.app/Contents/Developer + - name: Select Xcode 26.6 + run: sudo xcode-select -s /Applications/Xcode_26.6.app/Contents/Developer - name: Run macOS Test Plan shell: bash @@ -84,8 +84,8 @@ jobs: - name: Generate Secrets Sources run: PROJECT_DIR="$GITHUB_WORKSPACE" ./buildscripts/updateSecrets.sh - - name: Select Xcode 26.3 - run: sudo xcode-select -s /Applications/Xcode_26.3.app/Contents/Developer + - name: Select Xcode 26.6 + run: sudo xcode-select -s /Applications/Xcode_26.6.app/Contents/Developer - name: Run iOS Test Plan shell: bash diff --git a/Appcasts/netnewswire-beta.xml b/Appcasts/netnewswire-beta.xml index 11f2badc8..75975200b 100644 --- a/Appcasts/netnewswire-beta.xml +++ b/Appcasts/netnewswire-beta.xml @@ -6,6 +6,89 @@ Most recent NetNewsWire changes with links to updates. en + + NetNewsWire 7.3b1 + +
  • Restored the status bar from NetNewsWire of Yore (NetNewsWire 1-3). Show and hide it via the View menu + + ]]> + Tue, 20 Oct 2026 11:35:00 -0700 + + 15.0 + + + + NetNewsWire 7.2.1 + +
  • Fixed bug where navigated-to row, in column layout, might appear under column headers +
  • Fixed bug where scroller hiding/showing could mess up sidebar layout +
  • Added magnet as an allowed link scheme + + ]]> + Tue, 20 Oct 2026 10:00:00 -0700 + + 15.0 + + + + NetNewsWire 7.2.1b1 + +
  • Fixed bug where navigated-to row, in column layout, might appear under column headers +
  • Fixed bug where scroller hiding/showing could mess up sidebar layout +
  • Added magnet as an allowed link scheme + + ]]> + Sun, 18 Oct 2026 11:40:00 -0700 + + 15.0 + + + + NetNewsWire 7.2 + View > Use Column Layout menu item. Also note the new setting for unread counts at the top of the General (first) settings tab. +

    +Changes since 7.2b4: +

      +
    • Fixed column view bug where next-unread could scroll to a row that’s hidden under the column headers +
    +Changes since 7.1.5: +
      +
    • Added unread count display setting — show the count, show a dot, or hide it — which applies to the Dock icon badge, window title, and sidebar +
    • Added column layout for the timeline — choose View > Use Column Layout +
    • Expanded View > Sort Articles By with more options (works with standard and column layouts) +
    • Made timeline sorting per window instead of one setting for the whole app +
    • Made the Add Feed sheet start with the folder or account selected in the sidebar +
    • Changed the message for adding a feed that’s already added to include the name of the folder (or folders) +
    • Fixed bug where YouTube embeds in articles showed an error instead of playing +
    • Fixed bug where embedded videos with no set height — such as Inoreader’s YouTube player — collapsed to a short strip +
    • Fixed extra whitespace at the end of Slashdot articles and paragraphs running together +
    • Fixed parsing of RSS feed titles when a feed contains a textinput section (Slashdot, for instance) +
    • Added support for the instapaper_ignore class — elements marked with it are now removed from articles +
    • Changed tabs in pre and code elements in articles to display as four spaces +
    • Improved finding feeds in a page by skipping links to PDFs, movies, and other files that can’t be feeds +
    • Changed finding a feed to use the redirected-to URL +
    • Sped up Today and unread count queries +
    • Added up to 500 characters of the HTTP error response body to Error Log entries +
    • Fixed bug where the sidebar could reopen with no width when it had been collapsed in 7.1.x +
    • Fixed a memory leak when closing a main window +
    • Fixed a possible crash when the sidebar or timeline had no visible rows +
    • Changed sorting by title and by feed to sort numbers by value — “Episode 2” comes before “Episode 10” +
    • Added support for Substack-style footnotes +
    • Improved CJK text rendering in the article view by adding text-autospace +
    • Fixed horizontal overflow of WordPress Math blocks and SVGs in the Tiqoe Dark theme +
    • Improved font sizing and fixed superscript orphans in table cells in the Tiqoe Dark theme` +
    + ]]>
    + Wed, 14 Oct 2026 08:20:00 -0700 + + 15.0 +
    + NetNewsWire 7.2b4 Most recent NetNewsWire releases (not test builds). en + + NetNewsWire 7.2.1 + +
  • Fixed bug where navigated-to row, in column layout, might appear under column headers +
  • Fixed bug where scroller hiding/showing could mess up sidebar layout +
  • Added magnet as an allowed link scheme + + ]]> + Tue, 20 Oct 2026 10:00:00 -0700 + + 15.0 + + + + NetNewsWire 7.2 + +
  • Added unread count display setting — show the count, show a dot, or hide it — which applies to the Dock icon badge, window title, and sidebar +
  • Added column layout for the timeline — choose View > Use Column Layout +
  • Expanded View > Sort Articles By with more options (works with standard and column layouts) +
  • Made timeline sorting per window instead of one setting for the whole app +
  • Made the Add Feed sheet start with the folder or account selected in the sidebar +
  • Changed the message for adding a feed that’s already added to include the name of the folder (or folders) +
  • Fixed bug where YouTube embeds in articles showed an error instead of playing +
  • Fixed bug where embedded videos with no set height — such as Inoreader’s YouTube player — collapsed to a short strip +
  • Fixed extra whitespace at the end of Slashdot articles and paragraphs running together +
  • Fixed parsing of RSS feed titles when a feed contains a textinput section (Slashdot, for instance) +
  • Added support for the instapaper_ignore class — elements marked with it are now removed from articles +
  • Changed tabs in pre and code elements in articles to display as four spaces +
  • Improved finding feeds in a page by skipping links to PDFs, movies, and other files that can’t be feeds +
  • Changed finding a feed to use the redirected-to URL +
  • Sped up Today and unread count queries +
  • Added up to 500 characters of the HTTP error response body to Error Log entries +
  • Fixed bug where the sidebar could reopen with no width when it had been collapsed in 7.1.x +
  • Fixed a memory leak when closing a main window +
  • Fixed a possible crash when the sidebar or timeline had no visible rows +
  • Changed sorting by title and by feed to sort numbers by value — “Episode 2” comes before “Episode 10” +
  • Added support for Substack-style footnotes +
  • Improved CJK text rendering in the article view by adding text-autospace +
  • Fixed horizontal overflow of WordPress Math blocks and SVGs in the Tiqoe Dark theme +
  • Improved font sizing and fixed superscript orphans in table cells in the Tiqoe Dark theme + + ]]> + Wed, 14 Oct 2026 08:20:00 -0700 + + 15.0 + + NetNewsWire 7.1.5 Most recent NetNewsWire changes with links to updates. en + + NetNewsWire 7.3b1 + +
  • Restored the status bar from NetNewsWire of Yore (NetNewsWire 1-3). Show and hide it via the View menu + + ]]> + Tue, 20 Oct 2026 11:35:00 -0700 + + 15.0 + + + + NetNewsWire 7.2.1 + +
  • Fixed bug where navigated-to row, in column layout, might appear under column headers +
  • Fixed bug where scroller hiding/showing could mess up sidebar layout +
  • Added magnet as an allowed link scheme + + ]]> + Tue, 20 Oct 2026 10:00:00 -0700 + + 15.0 + + + + NetNewsWire 7.2.1b1 + +
  • Fixed bug where navigated-to row, in column layout, might appear under column headers +
  • Fixed bug where scroller hiding/showing could mess up sidebar layout +
  • Added magnet as an allowed link scheme + + ]]> + Sun, 18 Oct 2026 11:40:00 -0700 + + 15.0 + + NetNewsWire 7.2b2 StatusBarCountMode { + switch self { + case .lastRefresh: + includingUnreadCount ? .unreadCount : .foldersAndFeeds + case .unreadCount: + .foldersAndFeeds + case .foldersAndFeeds: + .lastRefresh + } + } +} + final class AppDefaults: Sendable { static let defaultThemeName = "Default" @@ -31,6 +50,9 @@ final class AppDefaults: Sendable { static let timelineSortDirection = "timelineSortDirection" static let timelineGroupByFeed = "timelineGroupByFeed" static let useColumnLayout = "useColumnLayout" + static let showStatusBar = "showStatusBar" + static let showStatusBarThemeMenu = "showStatusBarThemeMenu" + static let statusBarCountMode = "statusBarCountMode" static let detailFontSize = "detailFontSize" static let openInBrowserInBackground = "openInBrowserInBackground" static let subscribeToFeedsInDefaultBrowser = "subscribeToFeedsInDefaultBrowser" @@ -286,6 +308,45 @@ final class AppDefaults: Sendable { } } + /// The main window status bar. Applies to all windows. + var showStatusBar: Bool { + get { + AppDefaults.bool(for: Key.showStatusBar) + } + set { + AppDefaults.setBool(for: Key.showStatusBar, newValue) + } + } + + /// The status bar is off by default on macOS 26 and on by default everywhere else. + private static var showStatusBarDefault: Bool { + if #available(macOS 27.0, *) { + return true + } + if #available(macOS 26.0, *) { + return false + } + return true + } + + var showStatusBarThemeMenu: Bool { + get { + AppDefaults.bool(for: Key.showStatusBarThemeMenu) + } + set { + AppDefaults.setBool(for: Key.showStatusBarThemeMenu, newValue) + } + } + + var statusBarCountMode: StatusBarCountMode { + get { + StatusBarCountMode(rawValue: AppDefaults.int(for: Key.statusBarCountMode)) ?? .lastRefresh + } + set { + AppDefaults.setInt(for: Key.statusBarCountMode, newValue.rawValue) + } + } + var timelineShowsSeparators: Bool { return AppDefaults.bool(for: Key.timelineShowsSeparators) } @@ -344,6 +405,9 @@ final class AppDefaults: Sendable { Key.timelineSortDirection: ComparisonResult.orderedDescending.rawValue, Key.timelineGroupByFeed: false, Key.useColumnLayout: false, + Key.showStatusBar: Self.showStatusBarDefault, + Key.showStatusBarThemeMenu: true, + Key.statusBarCountMode: StatusBarCountMode.lastRefresh.rawValue, "NSScrollViewShouldScrollUnderTitlebar": false, Key.refreshInterval: RefreshInterval.every2Hours.rawValue, Key.showDebugMenu: showDebugMenu, diff --git a/Mac/AppDelegate.swift b/Mac/AppDelegate.swift index 60f7892c8..1873f817d 100644 --- a/Mac/AppDelegate.swift +++ b/Mac/AppDelegate.swift @@ -53,6 +53,8 @@ let appName = "NetNewsWire" @IBOutlet var debugMenuItem: NSMenuItem! @IBOutlet var useColumnLayoutMenuItem: NSMenuItem? + @IBOutlet var showStatusBarMenuItem: NSMenuItem? + @IBOutlet var showStatusBarThemeMenuMenuItem: NSMenuItem? @IBOutlet var checkForUpdatesMenuItem: NSMenuItem! var unreadCount = 0 { @@ -204,6 +206,7 @@ let appName = "NetNewsWire" } updateColumnLayoutMenuItem() + updateStatusBarMenuItems() if mainWindowController == nil { let mainWindowController = createAndShowMainWindow() @@ -399,6 +402,7 @@ let appName = "NetNewsWire" func userDefaultsDidChange() { updateColumnLayoutMenuItem() + updateStatusBarMenuItems() if lastRefreshInterval != AppDefaults.shared.refreshInterval { refreshTimer?.update() @@ -482,7 +486,7 @@ let appName = "NetNewsWire" let isDisplayingSheet = mainWindowController?.isDisplayingSheet ?? false if item.action == #selector(refreshAll(_:)) { - return !AccountManager.shared.refreshInProgress && !AccountManager.shared.activeAccounts.isEmpty + return AccountManager.shared.canRefresh } if item.action == #selector(importOPMLFromFile(_:)) { @@ -501,6 +505,10 @@ let appName = "NetNewsWire" return AccountManager.shared.hasiCloudAccount } + if item.action == #selector(toggleStatusBarThemeMenu(_:)) { + return AppDefaults.shared.showStatusBar + } + if item.action == #selector(toggleWebInspectorEnabled(_:)) { (item as! NSMenuItem).state = AppDefaults.shared.webInspectorEnabled ? .on : .off } @@ -765,6 +773,14 @@ let appName = "NetNewsWire" AppDefaults.shared.useColumnLayout.toggle() } + @IBAction func toggleStatusBar(_ sender: Any?) { + AppDefaults.shared.showStatusBar.toggle() + } + + @IBAction func toggleStatusBarThemeMenu(_ sender: Any?) { + AppDefaults.shared.showStatusBarThemeMenu.toggle() + } + @IBAction func checkForUpdates(_ sender: Any?) { softwareUpdater?.checkForUpdates() } @@ -884,6 +900,19 @@ extension AppDelegate { useColumnLayoutMenuItem?.state = AppDefaults.shared.useColumnLayout ? .on : .off } + @MainActor func updateStatusBarMenuItems() { + if AppDefaults.shared.showStatusBar { + showStatusBarMenuItem?.title = NSLocalizedString("Hide Status Bar", comment: "Command") + } else { + showStatusBarMenuItem?.title = NSLocalizedString("Show Status Bar", comment: "Command") + } + if AppDefaults.shared.showStatusBarThemeMenu { + showStatusBarThemeMenuMenuItem?.title = NSLocalizedString("Hide Theme Menu in Status Bar", comment: "Command") + } else { + showStatusBarThemeMenuMenuItem?.title = NSLocalizedString("Show Theme Menu in Status Bar", comment: "Command") + } + } + func importTheme(url: URL) { guard let window = mainWindowController?.window else { return } diff --git a/Mac/Browser.swift b/Mac/Browser.swift index 63489eb17..66f3c721a 100644 --- a/Mac/Browser.swift +++ b/Mac/Browser.swift @@ -46,6 +46,12 @@ import RSWeb static func open(_ urlString: String, inBackground: Bool) { guard let url = URL(string: urlString), let preparedURL = url.preparedForOpeningInBrowser() else { return } + // Non-web links (mailto, magnet) go to the system handler, not a browser. + guard preparedURL.isHTTPOrHTTPSURL() else { + NSWorkspace.shared.open(preparedURL) + return + } + let configuration = NSWorkspace.OpenConfiguration() configuration.requiresUniversalLinks = true configuration.promptsUserIfNeeded = false diff --git a/Mac/MainMenu/Base.lproj/MainMenu.xib b/Mac/MainMenu/Base.lproj/MainMenu.xib index 89e292ff2..bef15b34e 100644 --- a/Mac/MainMenu/Base.lproj/MainMenu.xib +++ b/Mac/MainMenu/Base.lproj/MainMenu.xib @@ -17,6 +17,8 @@ + + @@ -438,6 +440,18 @@ + + + + + + + + + + + + diff --git a/Mac/MainMenu/mul.lproj/MainMenu.xcstrings b/Mac/MainMenu/mul.lproj/MainMenu.xcstrings index 6e06ae635..19eda08b0 100644 --- a/Mac/MainMenu/mul.lproj/MainMenu.xcstrings +++ b/Mac/MainMenu/mul.lproj/MainMenu.xcstrings @@ -1963,6 +1963,30 @@ } } }, + "stB-ar-mI1.title" : { + "comment" : "Class = \"NSMenuItem\"; title = \"Show Status Bar\"; ObjectID = \"stB-ar-mI1\";", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "Show Status Bar" + } + } + } + }, + "stT-hm-mI1.title" : { + "comment" : "Class = \"NSMenuItem\"; title = \"Show Theme Menu in Status Bar\"; ObjectID = \"stT-hm-mI1\";", + "extractionState" : "extracted_with_value", + "localizations" : { + "en" : { + "stringUnit" : { + "state" : "new", + "value" : "Show Theme Menu in Status Bar" + } + } + } + }, "Td7-aD-5lo.title" : { "comment" : "Class = \"NSMenu\"; title = \"Window\"; ObjectID = \"Td7-aD-5lo\";", "extractionState" : "extracted_with_value", diff --git a/Mac/MainWindow/ArticleThemesManager+Menu.swift b/Mac/MainWindow/ArticleThemesManager+Menu.swift new file mode 100644 index 000000000..46ec73f9a --- /dev/null +++ b/Mac/MainWindow/ArticleThemesManager+Menu.swift @@ -0,0 +1,33 @@ +// +// ArticleThemesManager+Menu.swift +// NetNewsWire +// +// Created by Brent Simmons on 10/13/26. +// Copyright © 2026 Ranchero Software. All rights reserved. +// + +import AppKit + +extension ArticleThemesManager { + + /// The default theme, a separator, then the other themes. The current theme is checked. + @MainActor func makeArticleThemeMenu() -> NSMenu { + let articleThemeMenu = NSMenu() + + func addThemeItem(_ themeName: String) { + let themeItem = NSMenuItem() + themeItem.title = themeName + themeItem.action = #selector(MainWindowController.selectArticleTheme(_:)) + themeItem.state = themeName == currentThemeName ? .on : .off + articleThemeMenu.addItem(themeItem) + } + + addThemeItem(ArticleTheme.defaultTheme.name) + articleThemeMenu.addItem(NSMenuItem.separator()) + for themeName in themeNames { + addThemeItem(themeName) + } + + return articleThemeMenu + } +} diff --git a/Mac/MainWindow/Detail/Base.lproj/DetailView.xib b/Mac/MainWindow/Detail/Base.lproj/DetailView.xib index ccacb0c80..4057af57c 100644 --- a/Mac/MainWindow/Detail/Base.lproj/DetailView.xib +++ b/Mac/MainWindow/Detail/Base.lproj/DetailView.xib @@ -8,7 +8,7 @@ - + @@ -18,7 +18,7 @@ -