2017-09-01 87 views
1

我需要檢查應用程序是否存在於系統磁盤上。如果我沒有連接外部硬盤驅動器,它工作正常。但它也使我有時在外部硬盤驅動器上返回應用程序的路徑。是否可以使用定義的包標識符獲取所有應用程序的路徑

我使用NSWorkspace的absolutePathForAppBundleWithIdentifier方法。

它在文檔中有描述。但我目前無法找到我需要的東西。

-NSWorkspace absolutePathForAppBundleWithIdentifier

-NSWorkspace URLForApplicationWithBundleIdentifier

回答

相關問題