aboutsummaryrefslogtreecommitdiffstats
path: root/Drop Serve/DropZone.h
diff options
context:
space:
mode:
authorTeddy Wing2020-10-10 18:53:12 +0200
committerTeddy Wing2020-10-10 18:53:12 +0200
commit660a772195dfc13168cf9c797802462eb98938c0 (patch)
treea73532d025997533a69a7a8e2097f7484abe72da /Drop Serve/DropZone.h
parent4bfa7818879c5c106a91ee087e200e4ce7e08d5a (diff)
downloadDrop-Serve-660a772195dfc13168cf9c797802462eb98938c0.tar.bz2
Add drag and drop area
Allow dragging and dropping files. Based on: - https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/DragandDrop/Tasks/acceptingdrags.html#//apple_ref/doc/uid/20000993-BABHHIHC - https://developer.apple.com/library/archive/samplecode/CocoaDragAndDrop/Introduction/Intro.html#//apple_ref/doc/uid/DTS10000384-Intro-DontLinkElementID_2
Diffstat (limited to 'Drop Serve/DropZone.h')
-rw-r--r--Drop Serve/DropZone.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/Drop Serve/DropZone.h b/Drop Serve/DropZone.h
new file mode 100644
index 0000000..4b45789
--- /dev/null
+++ b/Drop Serve/DropZone.h
@@ -0,0 +1,13 @@
+//
+// DropZone.h
+// Drop Serve
+//
+// Created by TW on 10/10/20.
+// Copyright (c) 2020 TW. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+
+@interface DropZone : NSBox <NSDraggingDestination>
+
+@end