-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDTMultiSplitterPatch.m
70 lines (58 loc) · 1.14 KB
/
DTMultiSplitterPatch.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#import "DTMultiSplitterPatch.h"
#import "DTMultiSplitterPatchUI.h"
@implementation DTMultiSplitterPatch
+(BOOL)isSafe
{
return NO;
}
+(BOOL)allowsSubpatchesWithIdentifier:(id)identifier
{
return NO;
}
+(int)executionModeWithIdentifier:(id)identifier
{
return 0;
}
+(int)timeModeWithIdentifier:(id)identifier
{
return 0;
}
+ (Class)inspectorClassWithIdentifier:(id)fp8
{
return [DTMultiSplitterPatchUI class];
}
-(NSUInteger)portCount
{
return [inPorts count];
}
-(id)initWithIdentifier:(id)identifier
{
if(self = [super initWithIdentifier:identifier])
{
[[self userInfo] setObject:@"Kineme MultiSplitter" forKey:@"name"];
}
return self;
}
-(id)nodeActorForView:(NSView*)view
{
if(KIOnSnowLeopard())
{
Class QCMiniPatchActor = objc_getClass("QCMiniPatchActor");
return [QCMiniPatchActor sharedActor];
}
else // not 10.6 -- nothing fancy FIXME: update for 10.7
return [super nodeActorForView:view];
}
-(BOOL)execute:(QCOpenGLContext*)context time:(double)time arguments:(NSDictionary*)arguments
{
return YES;
}
-(NSDictionary*)state
{
return [super state];
}
-(BOOL)setState:(NSDictionary*)state
{
return [super setState:state];
}
@end