mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 02:50:48 +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
9aa55f49e5
commit
7fba1bb097
1 changed files with 11 additions and 2 deletions
|
@ -327,7 +327,16 @@ static NSComparisonResult aSort(GSIArrayItem i0, GSIArrayItem i1)
|
||||||
//
|
//
|
||||||
- (void) setTextStorage: (NSTextStorage*)aTextStorage
|
- (void) setTextStorage: (NSTextStorage*)aTextStorage
|
||||||
{
|
{
|
||||||
|
unsigned length = [aTextStorage length];
|
||||||
|
NSRange aRange = NSMakeRange(0, length);
|
||||||
|
|
||||||
ASSIGN(_textStorage, aTextStorage);
|
ASSIGN(_textStorage, aTextStorage);
|
||||||
|
// force complete re - layout
|
||||||
|
[self textStorage: aTextStorage
|
||||||
|
edited: NSTextStorageEditedCharacters | NSTextStorageEditedAttributes
|
||||||
|
range: aRange
|
||||||
|
changeInLength: length
|
||||||
|
invalidatedRange: aRange];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSTextStorage*) textStorage
|
- (NSTextStorage*) textStorage
|
||||||
|
@ -932,7 +941,7 @@ be redrawn when a range of glyphs changes. */
|
||||||
if (_usesScreenFonts)
|
if (_usesScreenFonts)
|
||||||
return originalFont;
|
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];
|
replaceFont = [originalFont screenFont];
|
||||||
|
|
||||||
if (replaceFont != nil)
|
if (replaceFont != nil)
|
||||||
|
@ -969,7 +978,7 @@ be redrawn when a range of glyphs changes. */
|
||||||
|
|
||||||
- (NSTextView*) firstTextView
|
- (NSTextView*) firstTextView
|
||||||
{
|
{
|
||||||
return NULL;
|
return [[_textContainers objectAtIndex: 0] textView];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSTextView*) textViewForBeginningOfSelection
|
- (NSTextView*) textViewForBeginningOfSelection
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue