mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 14:20:59 +00:00
[qwaq] Catch adding bad messages to listeners
Better an informative error than a "null function" error.
This commit is contained in:
parent
1a34f3663a
commit
2e1bddb94c
1 changed files with 3 additions and 0 deletions
|
@ -18,6 +18,9 @@
|
|||
self.responder = responder;
|
||||
self.message = message;
|
||||
imp = [responder methodForSelector: message];
|
||||
if (!imp) {
|
||||
[self error:"method not found: %s", sel_get_name (message)];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue