aboutsummaryrefslogtreecommitdiffstats
path: root/Drop Serve/DropZone.h
diff options
context:
space:
mode:
authorTeddy Wing2020-10-10 19:58:42 +0200
committerTeddy Wing2020-10-10 19:59:01 +0200
commit0fd6d98d8fd069119e615f7be78b13e1b2b4f41f (patch)
tree39d8a6f99f6b8779ba629497078be233be36144f /Drop Serve/DropZone.h
parent5e5f6a8e195218d63c2c302265c5c4ece995d77c (diff)
downloadDrop-Serve-0fd6d98d8fd069119e615f7be78b13e1b2b4f41f.tar.bz2
DropZone: Only accept a single dragged file/folder
Show an error message in a label in the drop zone if more than one is dropped.
Diffstat (limited to 'Drop Serve/DropZone.h')
-rw-r--r--Drop Serve/DropZone.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Drop Serve/DropZone.h b/Drop Serve/DropZone.h
index 4b45789..8129fd7 100644
--- a/Drop Serve/DropZone.h
+++ b/Drop Serve/DropZone.h
@@ -8,6 +8,8 @@
#import <Foundation/Foundation.h>
-@interface DropZone : NSBox <NSDraggingDestination>
+@interface DropZone : NSBox <NSDraggingDestination> {
+ IBOutlet NSTextField *_label;
+}
@end