(-sizeToFit): Add the extra line frag rect. (-scrollRangeToVisible:): Reimplement using the new insertion point positioning methods.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16120 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Alexander Malmberg 2003-03-03 18:36:07 +00:00
parent e4329b4ff9
commit 368c851e38

View file

@ -96,13 +96,33 @@ of the text container, when does it actually update its size? Might need
a new internal method called from NSLayoutManager when text has changed.
(Currently NSLayoutManager calls -sizeToFit when text has changed.)
Selecting with the keyboard behaves weirdly. Need to check if it's correct.
*/
/*
Interface for a bunch of internal methods that need to be cleaned up.
*/
@interface NSTextView (GNUstepPrivate)
/*
* Used to implement the blinking insertion point
*/
-(void) _blink: (NSTimer *)t;
/*
* these NSLayoutManager- like method is here only informally
*/
-(NSRect) rectForCharacterRange: (NSRange)aRange;
//
// GNU utility methods
//
-(void) copySelection;
-(void) pasteSelection;
@end
/**** Misc. helpers and stuff ****/
/* From NSView.m */
@ -2240,28 +2260,6 @@ NSRange MakeRangeFromAbs (unsigned a1, unsigned a2)
@interface NSTextView (GNUstepPrivate)
/*
* Used to implement the blinking insertion point
*/
-(void) _blink: (NSTimer *)t;
/*
* these NSLayoutManager- like method is here only informally
*/
-(NSRect) rectForCharacterRange: (NSRange)aRange;
//
// GNU utility methods
//
-(void) copySelection;
-(void) pasteSelection;
@end
@implementation NSTextView (leftovers)