Sfoglia il codice sorgente

Improve description for ivars and properties of type SEL

Show the selector name rather then the pointer address.
Ryan Olson 11 anni fa
parent
commit
53a95845f4
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  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;
             BOOL boolValue = NO;
             [value getValue:&boolValue];
             [value getValue:&boolValue];
             description = boolValue ? @"YES" : @"NO";
             description = boolValue ? @"YES" : @"NO";
+        } else if (strcmp(type, @encode(SEL)) == 0) {
+            SEL selector = NULL;
+            [value getValue:&selector];
+            description = NSStringFromSelector(selector);
         }
         }
     }
     }