mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 06:51:44 +00:00
ASSIGN name to _name in initWithName:target:selector:
This commit is contained in:
parent
c6fc8e0984
commit
9abf2a7494
1 changed files with 13 additions and 5 deletions
|
@ -26,8 +26,8 @@
|
|||
|
||||
@implementation NSAccessibilityCustomAction
|
||||
|
||||
- (instancetype)initWithName: (NSString *)name
|
||||
handler: (GSAccessibilityCustomActionHandler)handler
|
||||
- (instancetype) initWithName: (NSString *)name
|
||||
handler: (GSAccessibilityCustomActionHandler)handler
|
||||
{
|
||||
self = [super init];
|
||||
if (self != nil)
|
||||
|
@ -38,19 +38,27 @@
|
|||
return self;
|
||||
}
|
||||
|
||||
- (instancetype)initWithName: (NSString *)name
|
||||
target: (id)target
|
||||
selector: (SEL)selector
|
||||
- (instancetype) initWithName: (NSString *)name
|
||||
target: (id)target
|
||||
selector: (SEL)selector
|
||||
{
|
||||
self = [super init];
|
||||
if (self != nil)
|
||||
{
|
||||
ASSIGN(_name, name);
|
||||
_target = target;
|
||||
_selector = selector;
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void) dealloc
|
||||
{
|
||||
RELEASE(_name);
|
||||
RELEASE(_handler);
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
- (NSString *) name
|
||||
{
|
||||
return _name;
|
||||
|
|
Loading…
Reference in a new issue