Hi,
Thanks for the fast reply, this works very well, now I'd like to check if 
certain plugin for Quicktime got installed too, is there a similar service? i 
tried following and it returns nil:
NSURL * bURL = [[NSWorkspace sharedWorkspace] 
URLForApplicationWithBundleIdentifier:@"com.apple.AppleIntermediateCodec"];
Thanks.
--- 2010年6月24日 星期四,Stephen J. Butler <stephen.but...@gmail.com> 寫道﹕

寄件人: Stephen J. Butler <stephen.but...@gmail.com>
主題: Re: checking if an app installed
收件人: "Angelo Chen" <angelochen...@yahoo.com.hk>
副本(CC): Cocoa-dev@lists.apple.com
日期: 2010年6月24日,星期四,上午8:55

On Wed, Jun 23, 2010 at 7:48 PM, Angelo Chen <angelochen...@yahoo.com.hk> wrote:
> Hi,
> Is there a way to check if a certain application is installed? say if iMovie 
> is installed? thanks,

Three ways:

-[NSWorkspace absolutePathForAppBundleWithIdentifier:] (10.3)
-[NSWorkspace fullPathForApplication:] (10.0)
-[NSWorkspace URLForApplicationWithBundleIdentifier:] (10.6)




_______________________________________________

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

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

Reply via email to