* 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:
Gregory John Casamento 2009-04-10 19:30:05 +00:00
parent cdbc241fc0
commit fad769e84d
2 changed files with 19 additions and 0 deletions

View file

@ -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

View file

@ -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]