• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to set the name of open-with application for a specific file?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Core Data App With Auxiliary Panel
  • Next by Date: Re: incorrect checksum for freed object
  • Previous by thread: RE: Disabling Undo in Core Data
  • Next by thread: Re: incorrect checksum for freed object
  • Index(es):
    • Date
    • Thread