From 06118327277b6488a62d48f1471366565be0109f Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sat, 10 Oct 2020 20:36:58 +0200 Subject: Start a Python SimpleHTTPServer in dropped file directory 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. --- Drop Serve.xcodeproj/project.pbxproj | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Drop Serve.xcodeproj') diff --git a/Drop Serve.xcodeproj/project.pbxproj b/Drop Serve.xcodeproj/project.pbxproj index e9641f7..ecbf232 100644 --- a/Drop Serve.xcodeproj/project.pbxproj +++ b/Drop Serve.xcodeproj/project.pbxproj @@ -14,6 +14,7 @@ D1CA9B0C253211050013B767 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = D1CA9B0B253211050013B767 /* AppDelegate.m */; }; D1CA9B0F253211050013B767 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = D1CA9B0D253211050013B767 /* MainMenu.xib */; }; D1CA9B17253215150013B767 /* DropZone.m in Sources */ = {isa = PBXBuildFile; fileRef = D1CA9B16253215150013B767 /* DropZone.m */; }; + D1CA9B1E253230C60013B767 /* Server.m in Sources */ = {isa = PBXBuildFile; fileRef = D1CA9B1D253230C60013B767 /* Server.m */; }; /* End PBXBuildFile section */ /* Begin PBXFileReference section */ @@ -32,6 +33,8 @@ D1CA9B0E253211050013B767 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/MainMenu.xib; sourceTree = ""; }; D1CA9B15253215150013B767 /* DropZone.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DropZone.h; sourceTree = ""; }; D1CA9B16253215150013B767 /* DropZone.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DropZone.m; sourceTree = ""; }; + D1CA9B1C253230C60013B767 /* Server.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Server.h; sourceTree = ""; }; + D1CA9B1D253230C60013B767 /* Server.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Server.m; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -89,6 +92,8 @@ D1CA9B0B253211050013B767 /* AppDelegate.m */, D1CA9B15253215150013B767 /* DropZone.h */, D1CA9B16253215150013B767 /* DropZone.m */, + D1CA9B1C253230C60013B767 /* Server.h */, + D1CA9B1D253230C60013B767 /* Server.m */, D1CA9B0D253211050013B767 /* MainMenu.xib */, D1CA9AFF253211040013B767 /* Supporting Files */, ); @@ -174,6 +179,7 @@ D1CA9B05253211050013B767 /* main.m in Sources */, D1CA9B0C253211050013B767 /* AppDelegate.m in Sources */, D1CA9B17253215150013B767 /* DropZone.m in Sources */, + D1CA9B1E253230C60013B767 /* Server.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; -- cgit v1.2.3