Permalink
Browse files

Use NSNulls for nil osc types

  • Loading branch information...
Jonathan del Strother Jonathan del Strother
Jonathan del Strother authored and Jonathan del Strother committed Sep 10, 2009
1 parent f4566ab commit 89f3c8e6538c60586ddb55a02925d1a9896f5eb4
Showing with 2 additions and 0 deletions.
  1. +2 −0 OSCExtensions.m
View
@@ -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]];

0 comments on commit 89f3c8e

Please sign in to comment.