Update applicationShouldTerminate signature.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@35198 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Riccardo Mottola 2012-06-12 13:11:04 +00:00
parent 360e820370
commit 8dde4d19e4
6 changed files with 17 additions and 12 deletions

View file

@ -3,6 +3,10 @@
* Framework/PCProjectWindow.m
Use centerScanRect to avoid strange problems with AA text in editor.
* Headers/PCAppController.h
* PCAppController.m
Update applicationShouldTerminate signature.
2012-04-20 Riccardo Mottola <rm@gnu.org>
* Modules/Debuggers/ProjectCenter/PTYView.m

Binary file not shown.

View file

@ -16,7 +16,7 @@ include $(GNUSTEP_MAKEFILES)/common.make
#
# Main application
#
VERSION = 0.6.0
VERSION = 0.6.1
APP_NAME = ProjectCenter
ProjectCenter_APPLICATION_ICON = Images/ProjectCenter.tiff

View file

@ -1,7 +1,7 @@
/*
GNUstep ProjectCenter - http://www.gnustep.org/experience/ProjectCenter.html
Copyright (C) 2001 Free Software Foundation
Copyright (C) 2001-2012 Free Software Foundation
This file is part of GNUstep.
@ -72,7 +72,7 @@
- (void)applicationWillFinishLaunching:(NSNotification *)notification;
- (void)applicationDidFinishLaunching:(NSNotification *)notification;
- (BOOL)applicationShouldTerminate:(id)sender;
- (NSApplicationTerminateReply)applicationShouldTerminate:(id)sender;
- (void)applicationWillTerminate:(NSNotification *)notification;
@end

View file

@ -1,7 +1,7 @@
/*
GNUstep ProjectCenter - http://www.gnustep.org/experience/ProjectCenter.html
Copyright (C) 2001 Free Software Foundation
Copyright (C) 2001-2012 Free Software Foundation
This file is part of GNUstep.
@ -145,9 +145,9 @@
object:nil];
}
- (BOOL)applicationShouldTerminate:(id)sender
- (NSApplicationTerminateReply)applicationShouldTerminate:(id)sender
{
BOOL quit = YES;
NSApplicationTerminateReply quit = NSTerminateNow;
if ([prefController boolForKey:PromptOnQuit])
{
@ -155,7 +155,7 @@
@"Do you really want to quit ProjectCenter?",
@"Cancel", @"Quit", nil))
{
return NO;
return NSTerminateLater;
}
}
@ -163,20 +163,21 @@
// Save projects unconditionally if preferences tells that
if ([prefController boolForKey:SaveOnQuit])
{
quit = [projectManager saveAllProjects];
if(![projectManager saveAllProjects])
quit = NSTerminateLater;
}
// Close ProjectManager (projects, editors, etc.)
if ((quit == NO) || ([projectManager close] == NO))
{
return NO;
return NSTerminateLater;
}
[[NSNotificationCenter defaultCenter]
postNotificationName:PCAppWillTerminateNotification
object:nil];
return YES;
return NSTerminateNow;
}
- (void)applicationWillTerminate:(NSNotification *)notification

View file

@ -3,7 +3,7 @@
ApplicationName = "ProjectCenter";
ApplicationDescription = "GNUstep Integrated Development Environment";
ApplicationIcon = "ProjectCenter.tiff";
ApplicationRelease = "0.6.0";
ApplicationRelease = "0.6.1";
FullVersionID = "HEAD";
Authors = (
"Philippe C.D. Robert",
@ -63,6 +63,6 @@
}
);
URL = "See http://www.gnustep.org/";
Copyright = "Copyright (C) 1999 - 2008 Free Software Foundation";
Copyright = "Copyright (C) 1999 - 2012 Free Software Foundation";
CopyrightDescription = "Released under the GNU General Public License 3.0 or later";
}