On Mar 21, 2013, at 9:39 AM, Jerry Krinock <je...@ieee.org> 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to