Explorar o código

Improve description for ivars and properties of type SEL

Show the selector name rather then the pointer address.
Ryan Olson %!s(int64=11) %!d(string=hai) anos
pai
achega
53a95845f4
Modificáronse 1 ficheiros con 4 adicións e 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);
         }
     }