* Source/GSServicesManager.m: Call the more modern

NSDocumentController methods to open documents.
        * Resources/English.lproj/Localizable.strings
        * Resources/Esperanto.lproj/Localizable.strings
        * Resources/French.lproj/Localizable.strings
        * Resources/German.lproj/Localizable.strings
        * Resources/Italian.lproj/Localizable.strings
        * Resources/Lojban.lproj/Localizable.strings
        * Resources/Spanish.lproj/Localizable.strings
        Regenerate string files.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37350 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2013-11-01 20:34:29 +00:00
parent 332554d6fb
commit 072ade9e21
9 changed files with 574 additions and 551 deletions

View file

@ -577,17 +577,24 @@ static NSString *disabledName = @".GNUstepDisabled";
{
id del = [NSApp delegate];
BOOL result = NO;
NSError *err = nil;
if ([del respondsToSelector: _cmd])
{
result = [del application: theApp openFile: file];
}
else if ([[NSDocumentController sharedDocumentController]
openDocumentWithContentsOfFile: file display: YES] != nil)
openDocumentWithContentsOfURL: [NSURL fileURLWithPath: file]
display: YES
error: &err] != nil)
{
[NSApp activateIgnoringOtherApps: YES];
result = YES;
}
else
{
[NSApp presentError: err];
}
return result;
}
@ -618,13 +625,16 @@ static NSString *disabledName = @".GNUstepDisabled";
{
id del = [NSApp delegate];
BOOL result = NO;
NSError *err = nil;
if ([del respondsToSelector: _cmd])
{
result = [del application: theApp openFileWithoutUI: file];
}
else if ([[NSDocumentController sharedDocumentController]
openDocumentWithContentsOfFile: file display: NO] != nil)
openDocumentWithContentsOfURL: [NSURL fileURLWithPath: file]
display: NO
error: &err] != nil)
{
result = YES;
}
@ -646,13 +656,16 @@ static NSString *disabledName = @".GNUstepDisabled";
{
id del = [NSApp delegate];
BOOL result = NO;
NSError *err = nil;
if ([del respondsToSelector: _cmd])
{
result = [del application: theApp openURL: aURL];
}
else if ([[NSDocumentController sharedDocumentController]
openDocumentWithContentsOfURL: aURL display: YES] != nil)
openDocumentWithContentsOfURL: aURL
display: YES
error: &err] != nil)
{
[NSApp activateIgnoringOtherApps: YES];
result = YES;