Re: Virtual folder
Re: Virtual folder
- Subject: Re: Virtual folder
- From: Bill Bumgarner <email@hidden>
- Date: Mon, 22 May 2006 08:19:07 -0700
On May 22, 2006, at 7:51 AM, Fabien Schwob wrote:
What? Can't you already do this? Go menu > Connect to server...
and then put in whatever your address (ftp://foo.bar.com afp://
whatever) and it should mount like any other disk. Am I missing
something?
My example wasn't a good one. My goal is to try to integrate a
file-sharing application as a OSX folder. The FTP was just an
example. I
would like the user to be able to share a file only by draging it
to the
folder or to download a file by draging it from the folder.
Yes -- this can be done and from a Cocoa app, too. It is even
relatively easy.
Implement a WebDAV server that barfs out the appropriate DAV HTTP
responses for the dynamically populated folder and mount that in the
Finder.
Entirely user level -- no kernel extensions involved. Don't even
need root as long as you stick your server on some port above 1024.
There are a number of WebDAV and/or HTTP server libraries that can be
used. I generally use Twisted -- a python based internet
application toolkit -- as I haven't found anything better. It can
easily be shoved into a Cocoa app either by embedding the Python
interpreter or by using PyObjC. I would avoid any of the Java based
WebDAV servers unless you run the WebDAV server as a separate process
and use some kind of IPC to communicate with it.
b.bum
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden