From 1bf81b342c81577c239b8aba55ead5106884165b Mon Sep 17 00:00:00 2001 From: Ross Goldberg <484615+rgoldberg@users.noreply.github.com> Date: Mon, 21 Apr 2025 08:05:18 -0400 Subject: [PATCH] Use `NSMetadataItem*Key` instead of `kMDItem*` for Spotlight query keys. Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com> --- Sources/mas/Controllers/SpotlightSoftwareMap.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/mas/Controllers/SpotlightSoftwareMap.swift b/Sources/mas/Controllers/SpotlightSoftwareMap.swift index 8a747ce81..e1ae2d22c 100644 --- a/Sources/mas/Controllers/SpotlightSoftwareMap.swift +++ b/Sources/mas/Controllers/SpotlightSoftwareMap.swift @@ -64,11 +64,11 @@ class SpotlightSoftwareMap: SoftwareMap { (item.value(forAttribute: "_kMDItemDisplayNameWithExtensions") as? String ?? "") .removeSuffix(".app"), bundleIdentifier: - item.value(forAttribute: kMDItemCFBundleIdentifier as String) as? String ?? "", + item.value(forAttribute: NSMetadataItemCFBundleIdentifierKey) as? String ?? "", bundlePath: - item.value(forAttribute: kMDItemPath as String) as? String ?? "", + item.value(forAttribute: NSMetadataItemPathKey) as? String ?? "", bundleVersion: - item.value(forAttribute: kMDItemVersion as String) as? String ?? "" + item.value(forAttribute: NSMetadataItemVersionKey) as? String ?? "" ) } else { nil