LinenIsGreat
LinenIsGreat

Reputation: 594

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.

Upvotes: 0

Views: 846

Answers (1)

Darren
Darren

Reputation: 25619

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.

Upvotes: 4

Related Questions