Improvements for use with menu in-window

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@34949 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Germán Arias 2012-03-18 19:49:38 +00:00
parent 57e2d97334
commit d1fb8fa910
2 changed files with 37 additions and 1 deletions

View file

@ -55,7 +55,38 @@
- (BOOL)applicationShouldOpenUntitledFile:(NSApplication *)sender
{
return NO;
if (NSInterfaceStyleForKey(@"NSMenuInterfaceStyle", nil) ==
NSWindows95InterfaceStyle)
{
return YES;
}
else
{
return NO;
}
}
- (BOOL) applicationShouldTerminateAfterLastWindowClosed: (id)sender
{
if (NSInterfaceStyleForKey(@"NSMenuInterfaceStyle", nil) ==
NSWindows95InterfaceStyle)
{
NSDocumentController *docController;
docController = [NSDocumentController sharedDocumentController];
if ([[docController documents] count] > 0)
{
return NO;
}
else
{
return YES;
}
}
else
{
return NO;
}
}
- (void) newDocumentWithModel:(EOModel *)newModel

View file

@ -1,3 +1,8 @@
2012-03-18 German A. Arias <german@xelalug.org>
* Apps/EOModelEditor/EOModelEditorApp.m: Added delegate methods
for use with in-window menu.
2011-04-06 Fred Kiefer <FredKiefer@gmx.de>
* EOControl/EODebug.m: replace GNU runtime specific functions and