Skip to content
This repository was archived by the owner on Aug 11, 2024. It is now read-only.

Commit 92cf6b2

Browse files
Make sure apps can be indexed in all locales.
1 parent c999694 commit 92cf6b2

File tree

4 files changed

+5
-12
lines changed

4 files changed

+5
-12
lines changed

Retroactive.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@
602602
CODE_SIGN_ENTITLEMENTS = Retroactive/Support/Retroactive.entitlements;
603603
CODE_SIGN_STYLE = Automatic;
604604
COMBINE_HIDPI_IMAGES = YES;
605-
CURRENT_PROJECT_VERSION = 13;
605+
CURRENT_PROJECT_VERSION = 14;
606606
INFOPLIST_FILE = Retroactive/Support/Info.plist;
607607
LD_RUNPATH_SEARCH_PATHS = (
608608
"$(inherited)",
@@ -623,7 +623,7 @@
623623
CODE_SIGN_ENTITLEMENTS = Retroactive/Support/Retroactive.entitlements;
624624
CODE_SIGN_STYLE = Automatic;
625625
COMBINE_HIDPI_IMAGES = YES;
626-
CURRENT_PROJECT_VERSION = 13;
626+
CURRENT_PROJECT_VERSION = 14;
627627
INFOPLIST_FILE = Retroactive/Support/Info.plist;
628628
LD_RUNPATH_SEARCH_PATHS = (
629629
"$(inherited)",

Retroactive/StepOne/AppFinder.swift

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,7 @@ class AppFinder: NSObject {
2424
query = NSMetadataQuery()
2525
query?.searchScopes = ["/Applications"]
2626
print("query = \(String(describing: query))")
27-
// let chosen = AppManager.shared.chosenApp
28-
// if chosen == .itunes || chosen == .finalCutPro7 || chosen == .logicPro9 || chosen == .keynote5 {
29-
// query?.searchScopes = ["/Applications"]
30-
// } else {
31-
// query?.searchScopes = [NSMetadataQueryLocalComputerScope]
32-
// }
33-
let pred = NSPredicate.init(format: "\(searchContentType) == '\(bundleContentType)' AND \(searchBundleIdentifier) CONTAINS[c] %@", AppManager.shared.existingBundleIDOfChosenApp)
34-
// let pred = NSPredicate.init(format: "\(searchContentType) == '\(bundleContentType)' AND \(searchDisplayName) CONTAINS[c] %@ AND \(searchBundleIdentifier) CONTAINS[c] %@", AppManager.shared.nameOfChosenApp, AppManager.shared.existingBundleIDOfChosenApp)
27+
let pred = NSPredicate.init(format: "\(searchContentTypeTree) == '\(bundleContentType)' AND \(searchBundleIdentifier) CONTAINS[c] %@", AppManager.shared.existingBundleIDOfChosenApp)
3528
print("pred = \(String(describing: pred))")
3629
query?.predicate = pred
3730
query?.start()

Retroactive/StepOne/ChoiceViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import Cocoa
77

88
let searchDisplayName = "kMDItemDisplayName"
9-
let searchContentType = "kMDItemContentType"
9+
let searchContentTypeTree = "kMDItemContentTypeTree"
1010
let searchBundleIdentifier = "kMDItemCFBundleIdentifier"
1111
let searchPath = "kMDItemPath"
1212
let bundleContentType = "com.apple.application-bundle"

Retroactive/Support/SupportPath.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<key>LatestZIP</key>
1818
<string>https://github.com/cormiertyshawn895/Retroactive/releases/download/1.3/Retroactive.1.3.zip</string>
1919
<key>LatestBuildNumber</key>
20-
<integer>13</integer>
20+
<integer>14</integer>
2121
<key>SupportPathURL</key>
2222
<string>https://raw.githubusercontent.com/cormiertyshawn895/Retroactive/master/Retroactive/Support/SupportPath.plist</string>
2323
<key>ReleasePage</key>

0 commit comments

Comments
 (0)