Add better description, new ivars to init

This commit is contained in:
Gregory John Casamento 2023-11-14 11:04:25 -05:00 committed by Gregory Casamento
parent 3d99541546
commit 8a2c21a795

View file

@ -119,6 +119,23 @@
@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;
@ -307,6 +324,16 @@
{
// 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