Fix deprecation warnings related to UTIs.

This commit is contained in:
Brent Simmons
2024-11-03 21:31:40 -08:00
parent 69dc583c3f
commit 813500b55a
7 changed files with 41 additions and 43 deletions

View File

@@ -8,6 +8,7 @@
import AppKit
import Account
import UniformTypeIdentifiers
class ExportOPMLWindowController: NSWindowController {
@@ -75,7 +76,7 @@ class ExportOPMLWindowController: NSWindowController {
func exportOPML(account: Account) {
let panel = NSSavePanel()
panel.allowedFileTypes = ["opml"]
panel.allowedContentTypes = [UTType.opml]
panel.allowsOtherFileTypes = false
panel.prompt = NSLocalizedString("Export OPML", comment: "Export OPML")
panel.title = NSLocalizedString("Export OPML", comment: "Export OPML")