aboutsummaryrefslogtreecommitdiffstats
path: root/Drop Serve/DropZone.m
diff options
context:
space:
mode:
authorTeddy Wing2020-10-10 21:04:31 +0200
committerTeddy Wing2020-10-10 21:05:27 +0200
commit59704119e5d39927f68854c5dca9a3b4e0c64b57 (patch)
treebc3b4817536a171a2f5dbc88e49677f654c11c92 /Drop Serve/DropZone.m
parent06118327277b6488a62d48f1471366565be0109f (diff)
downloadDrop-Serve-59704119e5d39927f68854c5dca9a3b4e0c64b57.tar.bz2
Add a label to the window to show server status
Indicate that the server is running. Show what path it's serving from , what URL it's serving on, and a button to stop the server.
Diffstat (limited to 'Drop Serve/DropZone.m')
-rw-r--r--Drop Serve/DropZone.m7
1 files changed, 6 insertions, 1 deletions
diff --git a/Drop Serve/DropZone.m b/Drop Serve/DropZone.m
index 56efb08..b01e1f2 100644
--- a/Drop Serve/DropZone.m
+++ b/Drop Serve/DropZone.m
@@ -70,7 +70,12 @@
NSLog(@"%@", url);
- [Server serveAtPath:[url path]];
+ NSString *path = [url path];
+
+ [Server serveAtPath:path];
+
+ [_status_view setPath:path];
+ [_status_view setHidden:NO];
}
return YES;