Re: How to set the name of open-with application for a specific file?
Re: How to set the name of open-with application for a specific file?
- Subject: Re: How to set the name of open-with application for a specific file?
- From: Alexander Bokovikov <email@hidden>
- Date: Sat, 1 Aug 2009 22:09:15 +0600
On 31.07.2009, at 21:41, MATSUMOTO Satoshi <email@hidden> wrote:
I want to do this programmatically.
The direct answer to this question is very easy - it's impossible.
Why? Take a look here:
http://developer.apple.com/technotes/tn/tn2017.html#Section3
Nevertheless, if I understand it correctly, you need to create a
situation, when your app will be shown within the "Open With" menu for
appropriate file type, after user has installed your app on his/her
computer. If this is the case, then all what you need to do is the next:
- provide appropriate info.plist with your app bundle;
- place your app into Applications folder (with app installer's help).
I did it manually (the second part) and it works without any problems.
Going ahead, a question raises, how to make our great app to be the
default application for this file type? First of all read the topic,
next to the above mentioned. Then... really I never did it yet. As I
believe, a specific API function is required here. I never tried it
yet, though I will need to resolve the same problem soon. Therefore
I'd like to ask you to let me know, if you'll have any success here.
Thanks.
_______________________________________________
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