I would like to programmatically set the default application for a
document with a given extension. my current solution is to have only
one application that is capable of reading and writing a given
document type. Now there are multiple applications and I would like
the user to choose on in my app.
Is there a method for that anywhee in the GNUstep code. I am close to
working through the make_services code and find a hack, but I am
almost sure a corresponding method already exists.
[NSWorkspace -setBestApp:inRole:forExtension:] should do it.