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.
+2
A:
NSWorkspace has a couple of methods:
- openFile:withApplication:
- openURLs:withAppBundleIdentifier:options:additionalEventParamDescriptor:launchIdentifiers:
To use the second method, you'll need to know the bundle identifier of the browser you want to open.
Darren
2010-01-09 05:19:36
Ah, that makes sense. I read the beginning of that method and assumed it would work because of the description, "Opens one or more files from an array of URLs.”Much thanks!
oneinfiniteloop
2010-01-09 14:09:00