Updating ITFoundation to include updates spurred by Haven development.
[ITFoundation.git] / ITThreadChild.h
diff --git a/ITThreadChild.h b/ITThreadChild.h
new file mode 100644 (file)
index 0000000..a0892e7
--- /dev/null
@@ -0,0 +1,29 @@
+/*
+ *     ITFoundation
+ *     ITThreadChild.h
+ *
+ *     Copyright (c) 2008 by iThink Software.
+ *     All Rights Reserved.
+ *
+ *     $Id$
+ *
+ */
+
+#import <Foundation/Foundation.h>
+
+@protocol ITThreadChild <NSObject>
++ (void)runWithPorts:(NSArray *)portArray; // portArray[0] = receivePort, portArray[1] = sendPort. register an uninitialized object!
+@end
+
+@protocol ITThreadParent <NSObject>
+- (id)objectByPerformingSelector:(SEL)selector onClass:(Class)class;
+- (BOOL)registerThreadedChild:(id <ITThreadChild>)childObject; // receives an uninitialized (only alloc'd) child
+@end
+
+@interface ITThreadChild : NSObject <ITThreadChild> {
+
+}
+
++ (void)runWithPorts:(NSArray *)portArray;
+
+@end