forked from kineme/DataTools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSpookyReceivePatch.m
49 lines (39 loc) · 970 Bytes
/
SpookyReceivePatch.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#import "SpookyReceivePatch.h"
@implementation SpookyReceivePatch : QCPatch
+ (QCPatchExecutionMode)executionModeWithIdentifier:(id)fp8
{
return 2;
}
+ (BOOL)allowsSubpatchesWithIdentifier:(id)fp8
{
return NO;
}
/*+ (int)timeModeWithIdentifier:(id)fp8
{
return 1;
}*/
- (id)initWithIdentifier:(id)fp8
{
if(self = [super initWithIdentifier: fp8])
{
[inputSender setStringValue:@"Sender0"];
[[self userInfo] setObject:@"Kineme Spooky Receive" forKey:@"name"];
}
return self;
}
- (BOOL)setup:(QCOpenGLContext *)context
{
nexusManager = [DTSpookyNexus sharedNexusManager];
return YES;
}
- (void)cleanup:(QCOpenGLContext *)context
{
[nexusManager unuse];
}
- (BOOL)execute:(QCOpenGLContext *)context time:(double)time arguments:(NSDictionary *)arguments
{
[outputOutput setRawValue:[nexusManager objectForKey:[inputSender stringValue]]];
//[outputOutput setRawValue:[spookySenderObjects objectForKey:[inputSender stringValue]]];
return YES;
}
@end