Check whether an application exists on Mac from cocoa application?

Instead of checking for specific hard-coded applications, it'd be better to get a list of all applications that can handle the type of document you'll be passing to them That way, if the user has installed, say Acorn it'll automatically show up without your having to add it to your hard-coded list.

Instead of checking for specific hard-coded applications, it'd be better to get a list of all applications that can handle the type of document you'll be passing to them. That way, if the user has installed, say, Acorn, it'll automatically show up without your having to add it to your hard-coded list. There is also a way to do what you specifically asked for, but that is an inferior way to do what you really want to do, which is show the user all of their applications that can open the document.

Peter, thank you for the answer. The reason I am looking for Preview app specifically is that in my image editing application I always have a jpg/png/tiff file that represents the user document. Now, instead of implementing a print dialog from scratch I would like to show user a dialog with the message that they can print the image using Preview app and provide a button in this dialog to open the image in Preview app.

I had asked a related question here: stackoverflow. Com/questions/6452144/… Can you suggest a better way – AmaltasCoder Jun 30 at 10:44 @AmaltasCoder: The better way is your original plan. I have no idea how to implement it, but I'm pretty sure it's supposed to be possible.

Check the WWDC 2010 and 2011 sessions; one of them might cover it. – Peter Hosey Jun 30 at 18:19 Is it possible somehow that when I open the image in Preview app I also give the Preview application a print command from my application so that the print dialog in Preview is also opened. The same as the effect of cmd+p on Preview.

I asked this question here: stackoverflow. Com/questions/6538345/… – AmaltasCoder Jul 1 at 5:53.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions