Implemented [firstTextView].

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@7675 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
FredKiefer 2000-09-30 23:12:42 +00:00
parent ece28c6a63
commit 635957e149

View file

@ -327,7 +327,16 @@ static NSComparisonResult aSort(GSIArrayItem i0, GSIArrayItem i1)
//
- (void) setTextStorage: (NSTextStorage*)aTextStorage
{
unsigned length = [aTextStorage length];
NSRange aRange = NSMakeRange(0, length);
ASSIGN(_textStorage, aTextStorage);
// force complete re - layout
[self textStorage: aTextStorage
edited: NSTextStorageEditedCharacters | NSTextStorageEditedAttributes
range: aRange
changeInLength: length
invalidatedRange: aRange];
}
- (NSTextStorage*) textStorage
@ -932,7 +941,7 @@ be redrawn when a range of glyphs changes. */
if (_usesScreenFonts)
return originalFont;
// FIXME: Should check if any NSTextView is scalled or rotated
// FIXME: Should check if any NSTextView is scaled or rotated
replaceFont = [originalFont screenFont];
if (replaceFont != nil)
@ -969,7 +978,7 @@ be redrawn when a range of glyphs changes. */
- (NSTextView*) firstTextView
{
return NULL;
return [[_textContainers objectAtIndex: 0] textView];
}
- (NSTextView*) textViewForBeginningOfSelection