mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
(-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:
parent
e4329b4ff9
commit
368c851e38
1 changed files with 23 additions and 25 deletions
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue