But only if Spotlight is turned on for this disk. I mention this because I 
recently broke my own app under these exact circumstances, by turning off 
Spotlight! I had to turn it off because it was misbehaving - and I'm sure I'm 
not the only one. m.

On Wed, 20 Mar 2013 13:39:32 +0100, Tim Schröder <t...@timschroeder.net> said:
>I don't have the code at hand, but you could run a NSMetadataQuery and search 
>for kMDItemCFBundleIdentifier==abc.xyz.
>
>Best, Tim
>
>Am 20.03.2013 um 13:08 schrieb anni saini <anni_sa...@yahoo.com>:
>
>> Hi,
>> 
>> I'm tried to find out all the locations where my app is present on the disk. 
>> Is there any Cocoa API which returns an array of path of an application.
>> 
>> For example: my app identifier is "abc.xyz" and name is "ABCXYZ". I have 
>> four copies of app on the disk so I want to find out all the paths.
>> 
>> I'm able to find it using:
>> 
>> - (NSString*)fullPathForApplication:(NSString*)appName; 
>> or 
>> LSFindApplicationForInfo()
>> 
>> Both methods return the single path. I want all the path of my app which are 
>> located on the disk?
>> 

--
matt neuburg, phd = m...@tidbits.com, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
Programming iOS 6! http://shop.oreilly.com/product/0636920029717.do
_______________________________________________

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