discuss-gnustep
[Top][All Lists]
Advanced

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

Re: Setting default application


From: Richard Frith-Macdonald
Subject: Re: Setting default application
Date: Tue, 13 Feb 2007 17:17:23 +0000


On 13 Feb 2007, at 17:08, Andreas Höschler wrote:

Hello all,

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.





reply via email to

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