summaryrefslogtreecommitdiff
path: root/tikzit/src/gtk/InputDelegate.h
diff options
context:
space:
mode:
authorAlex Merry <alex.merry@cs.ox.ac.uk>2012-12-04 12:02:12 +0000
committerAlex Merry <alex.merry@cs.ox.ac.uk>2012-12-04 12:02:12 +0000
commit134de8169993f23f2c3a733a7bf96622965e7d7d (patch)
treed9caeac0f95e658b6a2a2c409bc2098e8f72e1d4 /tikzit/src/gtk/InputDelegate.h
parent94ff07fc9d728d97dde159e0c3e6ab80e29e0855 (diff)
Turn InputDelegate into a protocol
We require support for the @optional keyword, so we should make use of it.
Diffstat (limited to 'tikzit/src/gtk/InputDelegate.h')
-rw-r--r--tikzit/src/gtk/InputDelegate.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tikzit/src/gtk/InputDelegate.h b/tikzit/src/gtk/InputDelegate.h
index 1e35223..9f9b426 100644
--- a/tikzit/src/gtk/InputDelegate.h
+++ b/tikzit/src/gtk/InputDelegate.h
@@ -38,7 +38,8 @@ typedef enum {
ScrollRight = 4,
} ScrollDirection;
-@interface NSObject (InputDelegate)
+@protocol InputDelegate <NSObject>
+@optional
/**
* A mouse button was pressed.
*/