Permalink
Browse files

Added handler for CGRects

  • Loading branch information...
1 parent 9c64169 commit 0a13c780a8d655798d6abb727b6b3150c64c6805 @timburks timburks committed Oct 23, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 objc/Nu.m
View
@@ -5080,6 +5080,10 @@ static id collect_arguments(struct nu_handler_description *description, va_list
NSRect x = va_arg(ap, NSRect);
[cursor setCar:get_nu_value_from_objc_value(&x, type)];
}
+ else if (!strcmp(type, "{CGRect={CGPoint=dd}{CGSize=dd}}")) {
+ CGRect x = va_arg(ap, CGRect);
+ [cursor setCar:get_nu_value_from_objc_value(&x, type)];
+ }
else if (!strcmp(type, "{_NSPoint=dd}")) {
NSPoint x = va_arg(ap, NSPoint);
[cursor setCar:get_nu_value_from_objc_value(&x, type)];

0 comments on commit 0a13c78

Please sign in to comment.