mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
[qwaq] Change listener respond param to void *
Avoids writing another method for Array, so probably only for now.
This commit is contained in:
parent
9a2ea54e78
commit
d96059c70e
2 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue