Explorar el Código

Improve description for ivars and properties of type SEL

Show the selector name rather then the pointer address.
Ryan Olson hace 11 años
padre
commit
53a95845f4
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      Classes/Utility/FLEXRuntimeUtility.m

+ 4 - 0
Classes/Utility/FLEXRuntimeUtility.m

@@ -148,6 +148,10 @@ const unsigned int kFLEXNumberOfImplicitArgs = 2;
             BOOL boolValue = NO;
             [value getValue:&boolValue];
             description = boolValue ? @"YES" : @"NO";
+        } else if (strcmp(type, @encode(SEL)) == 0) {
+            SEL selector = NULL;
+            [value getValue:&selector];
+            description = NSStringFromSelector(selector);
         }
     }