mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 13:20:38 +00:00
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:
parent
ece28c6a63
commit
635957e149
1 changed files with 11 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue