discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting default application


From: Andreas Höschler
Subject: Re: Setting default application
Date: Tue, 13 Feb 2007 22:52:42 +0100

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]