The API:s to use for things like this would be NSWorkspace, and Launch 
Services. In that order of preference.

j o a r


On 23 maj 2010, at 15.57, Trygve Inda wrote:

> I know I have seen this code before but in the last 30 minutes of digging, I
> can't find it.
> 
> How can I get a list of bundle identifiers (or paths to an app) for all the
> apps that can open a file of a given type (eg pdf, mp3 etc)
> 
> Then, How can I get an icon for these apps?
> 
> Basically I want to build a menu of app apps on the system that can open a
> particular file.
> 
> Thanks,
> 
> Trygve
> 
> 
> _______________________________________________
> 
> 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/joar%40joar.com
> 
> This email sent to j...@joar.com

_______________________________________________

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