mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 05:00:47 +00:00
implement openFiles: delegate
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@35355 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
9dbc0b0dfc
commit
6dc25f660a
3 changed files with 34 additions and 6 deletions
|
@ -1120,12 +1120,7 @@ static NSSize scaledIconSizeForSize(NSSize imageSize)
|
|||
|
||||
if ((files = [self _openFiles]) != nil)
|
||||
{
|
||||
NSEnumerator *en = [files objectEnumerator];
|
||||
|
||||
while ((filePath = (NSString *)[en nextObject]) != nil)
|
||||
{
|
||||
[_listener application: self openFile: filePath];
|
||||
}
|
||||
[_listener application: self openFiles: files];
|
||||
}
|
||||
else if ((filePath = [defs stringForKey: @"GSFilePath"]) != nil
|
||||
|| (filePath = [defs stringForKey: @"NSOpen"]) != nil)
|
||||
|
@ -3555,6 +3550,7 @@ struct _DelegateWrapper
|
|||
* <item>application:shouldTerminateAfterLastWindowClosed:</item>
|
||||
* <item>application:shouldOpenUntitledFile:</item>
|
||||
* <item>application:openFile:</item>
|
||||
* <item>application:openFiles:</item>
|
||||
* <item>application:openFileWithoutUI:</item>
|
||||
* <item>application:openTempFile:</item>
|
||||
* <item>application:openUntitledFile:</item>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue