Skip to content

Commit

Permalink
Add better description, new ivars to init
Browse files Browse the repository at this point in the history
  • Loading branch information
gcasa committed Nov 14, 2023
1 parent 397dda4 commit e1909ff
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Source/GSStoryboardTransform.m
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,23 @@ - (NSRectEdge) _preferredEdge
@end

@implementation NSStoryboardSeguePerformAction
- (instancetype) init
{
self = [super init];
if (self != nil)
{
_target = nil;
_action = NULL;
_sender = nil;
_identifier = nil;
_kind = nil;
_popoverAnchorView = nil;
_storyboardSegue = nil;
_storyboard = nil;
}
return self;
}

- (id) target
{
return _target;
Expand Down Expand Up @@ -307,6 +324,16 @@ - (void) encodeWithCoder: (NSCoder *)coder
{
// this is never encoded directly...
}

- (NSString *) description
{
return [NSString stringWithFormat:
@"<%@ - target = %@, selector = %@, sender = %@, "
@"identifier = %@, kind = %@, popoverAnchorView = %@>",
[super description], [self target], [self selector],
[self sender], [self identifier], [self kind],
[self popoverAnchorView]];
}
@end

@implementation NSControllerPlaceholder
Expand Down

0 comments on commit e1909ff

Please sign in to comment.