Can't find the openUrl alternative for a Mac OSx app.

Hello


I have seen "UIApplication.shared.open (url)" used for iOS apps but I can't find the corresponding Swift rendering for MAC OSX app.


This doesn't work:


NSApplication.shared.open (url). I get error // NSApplication.shared has no member open.


Any help will be appreciated.

Answered by john daniel in 410210022

Use NSWorkspace

Accepted Answer

Use NSWorkspace

Can't find the openUrl alternative for a Mac OSx app.
 
 
Q