Opening a url in a non-default browser in a cocoa app

How can a cocoa application open a url in a browser other than the default browser? NSWorkspace doesn’t appear to offer any method for this.

Answers


NSWorkspace has a couple of methods:

To use the second method, you'll need to know the bundle identifier of the browser you want to open.


Need Your Help

C++ Template specialisation issue

c++

I have code that boils down to this:

Solution to error 'find: missing argument to -exec' with find -exec cp {} TARGET_DIR +

bash find arguments exec cp

I was getting ready to post this as a question, but after fiddling around with it a little longer, I found the solution. So I thought I would go ahead and post it here in case it helps someone els...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.