Correct - the App shall be started by a selection of a file in Finder with :
(Select File) -> Right Mouse Click -> Open With -> MyApp....
My question was, how I can handle that in my .Net MAUI-App.
I meanwhile found the solution:
In MauiProgram.cs, I have to configure Lifecycle-Events:
builder.ConfigureLifecycleEvents(events =>
{
#if IOS || MACCATALYST
events.AddiOS(ios => ios
.OnActivated ((app) => App.OnActivated ())
.OnResignActivation((app) => App.OnResignActivation ())
.DidEnterBackground((app) => App.DidEnterBackground ())
.WillTerminate ((app) => App.WillTerminate ())
.FinishedLaunching ((app,par) => App.FinishedLaunching (par))
.OpenUrl ((app,url,opts) => App.OpenMidiFileWithUrl (url, opts))
);
#endif
});