I would like to know a way to open the default browser on OS X from a C++ application and then open a requested URL.
EDIT: I solved it like this:
system("open http://www.apple.com");
I would like to know a way to open the default browser on OS X from a C++ application and then open a requested URL.
EDIT: I solved it like this:
system("open http://www.apple.com");
In case you prefer using the native OS X APIs instead of
system("open ...")
You can use this code:
Which you have to compile with the proper OS X frameworks:
Look at the docs for Launch Services.