Before all, I'm very new in swift cocoa application.

I'm developing an MacOS application for my company, the goal of this is to open a file ("right-click -> open with my app") to process it.

But after couples of search, I'm not enable to find a way to do it.
(I probably didn't search the good terms, but like I said I'm very new to this)

(I've done a similar things to windows, using the registers)

Somebody has an idea? link, documentation ?

Thanks !