aboutsummaryrefslogtreecommitdiffstats
path: root/Drop Serve/Server.m
AgeCommit message (Collapse)Author
2020-10-17Add license (GNU GPLv3+)Teddy Wing
2020-10-11Server: Ensure the process is terminated before starting a new oneTeddy Wing
Just in case. Was getting a runtime exception occasionally and am still not entirely sure why. It happened in the `[Server stop]` call. Also check if the process is running before terminating it. Didn't read about whether we're required to do this, but it seemed logical.
2020-10-11Server(stop): Use `NSTask terminate` instead of `interrupt`Teddy Wing
Noticed that sometimes the server wasn't stopped when it should have been. Thought maybe I should use `terminate` instead of `interrupt` to be sure that the process exits.
2020-10-10Server(stop): Deallocate `_process`Teddy Wing
Forgot to free the process after interrupting it.
2020-10-10Open served URL in the default browserTeddy Wing
2020-10-10Start a Python SimpleHTTPServer in dropped file directoryTeddy Wing
When a file or directory is dropped on the drop zone, start a Python SimpleHTTPServer from that directory. Ensure the server is terminated when the Drop Serve application quits.