I have a file path to a pdf and I want it to open in Preview. Also, I want finder to launch highlighting the file.
On iOS I would do:
UIApplication app = [UIApplication sharedApplication];
[app openURL:url];
But I have no idea what’s the alternative in Cocoa app.
Thanks
You should look at NSWorkspace