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;
|
IMP imp;
|
||||||
}
|
}
|
||||||
-initWithResponder: (id) responder :(SEL)message;
|
-initWithResponder: (id) responder :(SEL)message;
|
||||||
-(void) respond: (id) caller;
|
-(void) respond: (void *) caller_data;
|
||||||
-(BOOL) matchResponder: (id) responder :(SEL)message;
|
-(BOOL) matchResponder: (id) responder :(SEL)message;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@
|
||||||
-init;
|
-init;
|
||||||
-addListener: (id) responder :(SEL)message;
|
-addListener: (id) responder :(SEL)message;
|
||||||
-removeListener: (id) responder :(SEL)message;
|
-removeListener: (id) responder :(SEL)message;
|
||||||
-(void) respond: (id) caller;
|
-(void) respond: (void *) caller_data;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
#endif//__qwaq_listener_h
|
#endif//__qwaq_listener_h
|
||||||
|
|
|
@ -16,9 +16,9 @@
|
||||||
return self;
|
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
|
-(BOOL) matchResponder: (id) responder :(SEL)message
|
||||||
|
@ -58,9 +58,9 @@
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
-(void)respond: (id) caller
|
-(void)respond: (void *) caller_data
|
||||||
{
|
{
|
||||||
[listeners makeObjectsPerformSelector: @selector (respond:)
|
[listeners makeObjectsPerformSelector: @selector (respond:)
|
||||||
withObject: caller];
|
withObject: caller_data];
|
||||||
}
|
}
|
||||||
@end
|
@end
|
||||||
|
|
Loading…
Reference in a new issue