summaryrefslogtreecommitdiff
path: root/test/manual/etags/objcpp-src/SimpleCalc.H
diff options
context:
space:
mode:
Diffstat (limited to 'test/manual/etags/objcpp-src/SimpleCalc.H')
-rw-r--r--test/manual/etags/objcpp-src/SimpleCalc.H49
1 files changed, 49 insertions, 0 deletions
diff --git a/test/manual/etags/objcpp-src/SimpleCalc.H b/test/manual/etags/objcpp-src/SimpleCalc.H
new file mode 100644
index 00000000000..121ae6bada3
--- /dev/null
+++ b/test/manual/etags/objcpp-src/SimpleCalc.H
@@ -0,0 +1,49 @@
+//
+// SimpleCalc -- Randy Nelson -- NeXT Developer Training
+// A general class that serves as a liaison between a calculator interface
+// and a calculator engine.
+//
+// You may freely copy, distribute and reuse the code in this example.
+// NeXT disclaims any warranty of any kind, expressed or implied, as to
+// its fitness for any particular use.
+//
+// Created 8-8-90
+//
+#import <objc/Object.h>
+
+@interface SimpleCalc:Object
+{
+ // outlets...the front-end.
+ id display;
+ id enterKey;
+ id minusKey;
+ id infoManager;
+ id myNXStringTable;
+
+ // C++ object's can be a-part-of Objective-C objects.
+ class CalcEngine *cplus_object;
+
+ // record each previous user action
+ SEL previousAction;
+}
+
+// actions.
+
+- numberKeys:sender;
+- decimalKey:sender;
+- operationKeys:sender;
+- equalsKey:sender;
+- clearKey:sender;
+- clearAllKey:sender;
+- infoPanel:sender;
+- helpPanel:sender;
+
+// delegate methods.
+
+- windowWillClose:sender;
+- appDidInit:sender;
+
+- registerAction:(SEL)action;
+- appendToDisplay:(const char *)theString;
+
+@end