Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use NSNulls for nil osc types

  • Loading branch information...
commit 89f3c8e6538c60586ddb55a02925d1a9896f5eb4 1 parent f4566ab
Jonathan del Strother authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  OSCExtensions.m
View
2  OSCExtensions.m
@@ -65,6 +65,8 @@ -(id)readNSValueFromPosition:(NSUInteger*)pos withBias:(BBOSCType)bias {
oscValue = [self valueAtIndex:*pos];
(*pos)++;
+ if ([oscValue type] == OSCValNil)
+ return [NSNull null];
switch (bias) {
case BBOSCTypeBool:
outputValue = [NSNumber numberWithBool:[oscValue boolValue]];
Please sign in to comment.
Something went wrong with that request. Please try again.