Change name of the handler

This commit is contained in:
Gregory John Casamento 2020-06-15 06:07:59 -04:00
parent 7c296ae5a9
commit ac207e296d
2 changed files with 7 additions and 7 deletions

View file

@ -33,12 +33,12 @@
extern "C" {
#endif
DEFINE_BLOCK_TYPE(GSCustomActionHandler, void, BOOL);
DEFINE_BLOCK_TYPE(GSAccessibilityCustomActionHandler, void, BOOL);
@interface NSAccessibilityCustomAction : NSObject
- (instancetype)initWithName: (NSString *)name
handler: (GSCustomActionHandler)handler;
handler: (GSAccessibilityCustomActionHandler)handler;
- (instancetype)initWithName: (NSString *)name
target: (id)target
@ -47,8 +47,8 @@ DEFINE_BLOCK_TYPE(GSCustomActionHandler, void, BOOL);
- (NSString *) name;
- (void) setName: (NSString *)name;
- (GSCustomActionHandler) handler;
- (void) setHandler: (GSCustomActionHandler)handler;
- (GSAccessibilityCustomActionHandler) handler;
- (void) setHandler: (GSAccessibilityCustomActionHandler)handler;
- (id) target;
- (void) setTarget: (id)target;

View file

@ -27,7 +27,7 @@
@implementation NSAccessibilityCustomAction
- (instancetype)initWithName: (NSString *)name
handler: (GSCustomActionHandler)handler
handler: (GSAccessibilityCustomActionHandler)handler
{
return nil;
}
@ -48,12 +48,12 @@
{
}
- (GSCustomActionHandler) handler
- (GSAccessibilityCustomActionHandler) handler
{
return nil;
}
- (void) setHandler: (GSCustomActionHandler)handler
- (void) setHandler: (GSAccessibilityCustomActionHandler)handler
{
}