From 5c1f2bc37640106e01bf6ba4692b0abcf99f3136 Mon Sep 17 00:00:00 2001 From: FredKiefer Date: Fri, 2 Nov 2001 13:07:09 +0000 Subject: [PATCH] Added include for NSScrollView to avoid compiler warning. [_blink] don't call [NSApp updateWindows], just redisplay our window. [mouseDown:] replaces all [_window flushWindow] with [self displayIfNeeded]. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@11292 72102866-910b-0410-8b05-ffd578937521 --- Source/NSTextView.m | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Source/NSTextView.m b/Source/NSTextView.m index 018d923d3..c56ca2ef4 100644 --- a/Source/NSTextView.m +++ b/Source/NSTextView.m @@ -53,6 +53,7 @@ #include #include #include +#include #include #include #include @@ -2190,7 +2191,7 @@ afterString in order over charRange. */ stillSelecting: YES]; /* Do an immediate redisplay for visual feedback */ - [_window flushWindow]; /* FIXME: This doesn't work while it should ! */ + [self displayIfNeeded]; /* Enter modal loop tracking the mouse */ @@ -2218,7 +2219,7 @@ afterString in order over charRange. */ } /* Do an immediate redisplay for visual feedback */ - [_window flushWindow]; + [self displayIfNeeded]; } NSDebugLog(@"chosenRange. location = %d, length = %d\n", @@ -2228,7 +2229,7 @@ afterString in order over charRange. */ stillSelecting: NO]; /* Ahm - this shouldn't really be needed but... */ - [_window flushWindow]; + [self displayIfNeeded]; /* Remember granularity till a new selection destroys the memory */ [self setSelectionGranularity: granularity]; @@ -3260,8 +3261,8 @@ other than copy/paste or dragging. */ avoidAdditionalLayout: YES]; /* Because we are called by a timer which is independent of any event processing in the gui runloop, we need to manually update - the windows. */ - [NSApp updateWindows]; + the window. */ + [self displayIfNeeded]; } + (NSDictionary*) defaultTypingAttributes