mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +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
|
@ -1,3 +1,8 @@
|
|||
2009-04-10 15:30-EDT Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Source/NSApplication.m: Follow the NSApplication responder
|
||||
chain.
|
||||
|
||||
2009-04-10 15:00-EDT Gregory John Casamento <greg_casamento@yahoo.com>
|
||||
|
||||
* Source/NSSplitView.m: Set subviews to resize when loaded from
|
||||
|
|
|
@ -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…
Reference in a new issue