mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Updated setup of the text system for changes in NSLayoutManager
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@12482 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
435e2fe226
commit
6a3a289ea7
1 changed files with 3 additions and 8 deletions
|
@ -177,19 +177,14 @@ static NSNotificationCenter *nc;
|
|||
textStorage = [[NSTextStorage alloc] init];
|
||||
|
||||
layoutManager = [[NSLayoutManager alloc] init];
|
||||
/*
|
||||
[textStorage addLayoutManager: layoutManager];
|
||||
RELEASE (layoutManager);
|
||||
*/
|
||||
|
||||
[textStorage addLayoutManager: layoutManager];
|
||||
RELEASE (layoutManager);
|
||||
|
||||
textContainer = [[NSTextContainer alloc] initWithContainerSize: aSize];
|
||||
[layoutManager addTextContainer: textContainer];
|
||||
RELEASE (textContainer);
|
||||
|
||||
/* FIXME: The following two lines should go *before* */
|
||||
[textStorage addLayoutManager: layoutManager];
|
||||
RELEASE (layoutManager);
|
||||
|
||||
/* The situation at this point is as follows:
|
||||
|
||||
textView (us) --RETAINs--> textStorage
|
||||
|
|
Loading…
Reference in a new issue