mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 04:50:37 +00:00
* Source/NSApplication.m: Follow the NSApplication responder
chain. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28202 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
cdbc241fc0
commit
fad769e84d
2 changed files with 19 additions and 0 deletions
|
@ -3702,6 +3702,20 @@ struct _DelegateWrapper
|
|||
return _delegate;
|
||||
}
|
||||
|
||||
/*
|
||||
* Try the NSApplication's responder list to determine if any of them
|
||||
* respond to the selector.
|
||||
*/
|
||||
resp = [self nextResponder];
|
||||
while(resp != nil)
|
||||
{
|
||||
if([resp respondsToSelector: aSelector])
|
||||
{
|
||||
return resp;
|
||||
}
|
||||
resp = [resp nextResponder];
|
||||
}
|
||||
|
||||
/* as a last resort in a document based app, try the document controller */
|
||||
if ([NSDocumentController isDocumentBasedApplication]
|
||||
&& [[NSDocumentController sharedDocumentController]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue