Преглед изворни кода

Allow editing of Class ivars/properties

Tanner Bennett пре 6 година
родитељ
комит
c02192cd71
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      Classes/Editing/ArgumentInputViews/FLEXArgumentInputObjectView.m

+ 2 - 2
Classes/Editing/ArgumentInputViews/FLEXArgumentInputObjectView.m

@@ -173,12 +173,12 @@ typedef NS_ENUM(NSUInteger, FLEXArgInputObjectType) {
 {
     NSParameterAssert(type);
     // Must be object type
-    return type[0] == '@';
+    return type[0] == FLEXTypeEncodingObjcObject || type[0] == FLEXTypeEncodingObjcClass;
 }
 
 + (FLEXArgInputObjectType)preferredDefaultTypeForObjCType:(const char *)type withCurrentValue:(id)value
 {
-    NSParameterAssert(type[0] == '@');
+    NSParameterAssert(type[0] == FLEXTypeEncodingObjcObject || type[0] == FLEXTypeEncodingObjcClass);
 
     if (value) {
         // If there's a current value, it must be serializable to JSON