[qwaq] Change listener respond param to void *

Avoids writing another method for Array, so probably only for now.
This commit is contained in:
Bill Currie 2020-03-25 09:20:40 +09:00
parent 9a2ea54e78
commit d96059c70e
2 changed files with 6 additions and 6 deletions

View file

@ -12,7 +12,7 @@
IMP imp;
}
-initWithResponder: (id) responder :(SEL)message;
-(void) respond: (id) caller;
-(void) respond: (void *) caller_data;
-(BOOL) matchResponder: (id) responder :(SEL)message;
@end
@ -23,7 +23,7 @@
-init;
-addListener: (id) responder :(SEL)message;
-removeListener: (id) responder :(SEL)message;
-(void) respond: (id) caller;
-(void) respond: (void *) caller_data;
@end
#endif//__qwaq_listener_h

View file

@ -16,9 +16,9 @@
return self;
}
-(void)respond: (id) caller
-(void)respond: (void *) caller_data
{
imp (responder, message, caller);
imp (responder, message, caller_data);
}
-(BOOL) matchResponder: (id) responder :(SEL)message
@ -58,9 +58,9 @@
return self;
}
-(void)respond: (id) caller
-(void)respond: (void *) caller_data
{
[listeners makeObjectsPerformSelector: @selector (respond:)
withObject: caller];
withObject: caller_data];
}
@end