Re: How to get all the path of an application present on the disk
Re: How to get all the path of an application present on the disk
- Subject: Re: How to get all the path of an application present on the disk
- From: Charles Srstka <email@hidden>
- Date: Thu, 21 Mar 2013 14:24:31 -0500
On Mar 21, 2013, at 9:39 AM, Jerry Krinock <email@hidden> wrote:
> The only way to do this may be to search the whole drive, stopping each time you find a directory (package) which looks like an app (.app extension, presence of Contents/Info.plist, etc.), and examining the CFBundleIdentifier in that Info.plist.
>
> It can be done using PBCatalogSearchAsync(), as in these demos…
>
> https://github.com/jerrykrinock/ClassesObjC/blob/master/SSYCarbonSearcher.m
> https://github.com/jerrykrinock/SSYCarbonSearcher
>
> but such a search takes minutes, not seconds, especially for a large non-SSD mechanical drive.
And then there's the fact that Apple has deprecated catalog FS/PBCatalogSearch in favor of Spotlight (sigh...).
Charles
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden