discuss-gnustep
[Top][All Lists]
Advanced

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

Re: NSWorkspace question


From: Fred Kiefer
Subject: Re: NSWorkspace question
Date: Mon, 14 Mar 2005 10:47:32 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.2) Gecko/20040906

Karsten Fuhrmann wrote:
Hello, i wonder how can i tell the GWorkspace program which browser to use when a program sends the message
[[NSWorkspace sharedWorkspace] openURL:myurl]

The same code works perfect under MacOS X

At the moment nothing happens, no error or warnig.

Is GWorkspace realy required to handle such message or how is it done in GnuStep?


First it must be noted that GNUstep currently only supports file URLs here. And for files the normal mechanism of openFile: is applied. That is you need to register an application for a specific file type and that will be used to open the file. GWorkspace has, as far as I know, nothing to do with this.

If you want to start to work on removing the limitation to file URLs, you will need to extend the way NSApplication/GSServiceManager work with files.

Fred




reply via email to

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