Skip to content

Commit

Permalink
Remote object descriptions are sent over the wire to be displayed in …
Browse files Browse the repository at this point in the history
…the client.
  • Loading branch information
chinmaygarde committed Jun 10, 2014
1 parent 21b533d commit 3872ff0
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
1 change: 1 addition & 0 deletions Detective/CALayer+HDHelpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ typedef enum :NSInteger {
@property (nonatomic, readonly) NSArray *subviews;
@property (nonatomic, readonly) NSString *viewControllerClass;
@property (nonatomic, readonly) NSArray *pathToRoot;
@property (nonatomic, readonly) NSString *remoteObjectDescription;

-(NSData *) getPNGSurfaceRepresentation:(CALayerSurfaceRepresentationType) type;
-(CALayer *) getChildWithPointerValue:(NSInteger) pointerValue;
Expand Down
7 changes: 6 additions & 1 deletion Detective/CALayer+HDHelpers.m
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ -(CALayer *) getChildWithPointerValue:(NSInteger) pointerValue {
return nil;
}

-(NSString *) remoteObjectDescription {
return self.description;
}

-(NSArray *) serializableProperties {
return @[
@"pointerValue",
Expand All @@ -85,7 +89,8 @@ -(NSArray *) serializableProperties {
@"subviews",
@"classHierarchy",
@"viewControllerClass",
@"pathToRoot"
@"pathToRoot",
@"remoteObjectDescription",
];
}

Expand Down
1 change: 1 addition & 0 deletions Detective/UIView+HDHelpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
@property (nonatomic, readonly) NSInteger pointerValue;
@property (nonatomic, readonly) NSString *viewControllerClass;
@property (nonatomic, readonly) NSArray *pathToRoot;
@property (nonatomic, readonly) NSString *remoteObjectDescription;

-(UIView *) getChildWithPointerValue:(NSInteger) pointerValue;

Expand Down
7 changes: 6 additions & 1 deletion Detective/UIView+HDHelpers.m
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ -(NSInteger) pointerValue {
return (NSInteger)self;
}

-(NSString *) remoteObjectDescription {
return self.description;
}

-(NSString *) viewControllerClass {
UIResponder *responder = self;

Expand Down Expand Up @@ -59,7 +63,8 @@ -(NSArray *) serializableProperties {
@"frame",
@"classHierarchy",
@"viewControllerClass",
@"pathToRoot"
@"pathToRoot",
@"remoteObjectDescription",
];
}

Expand Down

0 comments on commit 3872ff0

Please sign in to comment.