Commit
- Also unbox C strings into NSString - Also adds return type encoding string to method calling view controller
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -367,7 +367,10 @@ - (id)valueForPropertyAtIndex:(NSInteger)index | |
id value = nil; | ||
if ([self canHaveInstanceState]) { | ||
FLEXPropertyBox *propertyBox = self.filteredProperties[index]; | ||
NSString *typeString = [FLEXRuntimeUtility typeEncodingForProperty:propertyBox.property]; | ||
const FLEXTypeEncoding *encoding = [typeString cStringUsingEncoding:NSUTF8StringEncoding]; | ||
value = [FLEXRuntimeUtility valueForProperty:propertyBox.property onObject:self.object]; | ||
value = [FLEXRuntimeUtility potentiallyUnwrapBoxedPointer:value type:encoding]; | ||
} | ||
return value; | ||
} | ||
|
@@ -449,7 +452,9 @@ - (id)valueForIvarAtIndex:(NSInteger)index | |
id value = nil; | ||
if ([self canHaveInstanceState]) { | ||
FLEXIvarBox *ivarBox = self.filteredIvars[index]; | ||
const FLEXTypeEncoding *encoding = ivar_getTypeEncoding(ivarBox.ivar); | ||
value = [FLEXRuntimeUtility valueForIvar:ivarBox.ivar onObject:self.object]; | ||
value = [FLEXRuntimeUtility potentiallyUnwrapBoxedPointer:value type:encoding]; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
NSExceptional
Author
Collaborator
|
||
} | ||
return value; | ||
} | ||
|
@NSExceptional Noticed this is crashing if you tap on the
frame
orbounds
properties on a view on device (iPhone 7). Looks like it gets choked up on the _typeInfo field of NSValue. We should be pushing an editor rather than an object explorer for those properties, so I'm going to put up a commit for that, but it would be awesome to handle the crash that's happening for exploring certain NSValue objects also.