mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 17:52:42 +00:00
Cache runloop modes array.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@18231 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
08baa147cf
commit
1c14dac8ed
2 changed files with 11 additions and 9 deletions
|
@ -1,3 +1,8 @@
|
|||
2003-11-29 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSWindow.m (+initialize) cache runloop modes.
|
||||
(-_handleWindowNeedsDisplay:) and (-orderWindow:relativeTo:) use cached modes.
|
||||
|
||||
2003-11-29 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSCell.m (-setTitleWithMnemonic:) use [setTitle:] instead
|
||||
|
|
|
@ -73,6 +73,7 @@
|
|||
#include "GNUstepGUI/GSToolbarView.h"
|
||||
|
||||
BOOL GSViewAcceptsDrag(NSView *v, id<NSDraggingInfo> dragInfo);
|
||||
static NSArray *modes = nil;
|
||||
|
||||
@interface NSObject (DragInfoBackend)
|
||||
- (void) dragImage: (NSImage*)anImage
|
||||
|
@ -122,10 +123,7 @@ has blocked and waited for events.
|
|||
target: self
|
||||
argument: nil
|
||||
order: 600000
|
||||
modes: [NSArray arrayWithObjects:
|
||||
NSDefaultRunLoopMode,
|
||||
NSModalPanelRunLoopMode,
|
||||
NSEventTrackingRunLoopMode, nil]];
|
||||
modes: modes];
|
||||
}
|
||||
|
||||
/* We get here if we were ordered out or miniaturized. In this case if
|
||||
|
@ -503,7 +501,6 @@ static NSMutableSet *autosaveNames;
|
|||
static NSMapTable* windowmaps = NULL;
|
||||
static NSNotificationCenter *nc = nil;
|
||||
|
||||
|
||||
/*
|
||||
* Class methods
|
||||
*/
|
||||
|
@ -520,6 +517,9 @@ static NSNotificationCenter *nc = nil;
|
|||
viewClass = [NSView class];
|
||||
autosaveNames = [NSMutableSet new];
|
||||
nc = [NSNotificationCenter defaultCenter];
|
||||
modes = [[NSArray alloc] initWithObjects: NSDefaultRunLoopMode,
|
||||
NSModalPanelRunLoopMode,
|
||||
NSEventTrackingRunLoopMode, nil];
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1446,10 +1446,7 @@ many times.
|
|||
target: self
|
||||
argument: nil
|
||||
order: 600000
|
||||
modes: [NSArray arrayWithObjects:
|
||||
NSDefaultRunLoopMode,
|
||||
NSModalPanelRunLoopMode,
|
||||
NSEventTrackingRunLoopMode, nil]];
|
||||
modes: modes];
|
||||
|
||||
if (_f.has_closed == YES)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue