Browse files

Add a tickle port to resend OSC messages

  • Loading branch information...
1 parent 09fa3a1 commit ac80e16945892847bd6f6f57167b3f1ba1914e3c Jonathan del Strother committed May 13, 2010
Showing with 7 additions and 1 deletion.
  1. +1 −0 BBOSCPlugInSender.h
  2. +6 −1 BBOSCPlugInSender.m
View
1 BBOSCPlugInSender.h
@@ -18,5 +18,6 @@
@property (nonatomic, readwrite, assign) NSString* inputBroadcastAddress;
@property (nonatomic, readwrite, assign) NSUInteger inputBroadcastPort;
@property (nonatomic, readwrite, assign) NSString* inputBroadcastPath;
+@property (nonatomic, readwrite, assign) BOOL inputTickle;
@end
View
7 BBOSCPlugInSender.m
@@ -24,7 +24,7 @@ @interface BBOSCPlugInSender ()
@implementation BBOSCPlugInSender
@synthesize oscPort, oscParameters;
-@dynamic inputBroadcastPort, inputBroadcastPath, inputBroadcastAddress;
+@dynamic inputBroadcastPort, inputBroadcastPath, inputBroadcastAddress, inputTickle;
+ (NSDictionary*) attributes
{
@@ -48,6 +48,9 @@ + (NSDictionary*) attributesForPropertyPortWithKey:(NSString*)key {
return [NSDictionary dictionaryWithObjectsAndKeys:@"Broadcast Path", QCPortAttributeNameKey,
@"/test", QCPortAttributeDefaultValueKey, nil];
}
+ if ([key isEqualToString:@"inputTickle"]) {
+ return [NSDictionary dictionaryWithObjectsAndKeys:@"Mr Tickle", QCPortAttributeNameKey, nil];
+ }
return nil;
}
@@ -182,6 +185,8 @@ Return NO in case of failure during the execution (this will prevent rendering o
}
if ([self didValueForInputKeyChange:@"inputBroadcastPath"])
inputsChanged = YES;
+ if (self.inputTickle && [self didValueForInputKeyChange:@"inputTickle"])
+ inputsChanged = YES;
if (!inputsChanged)
return YES;

0 comments on commit ac80e16

Please sign in to comment.