Hi Richard,

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.

Thanks a lot! This indeed did the trick!

Regards,

   Andreas



_______________________________________________
Discuss-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to