mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 22: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
3a6b867d04
commit
42a7108f85
1 changed files with 3 additions and 8 deletions
|
@ -177,19 +177,14 @@ static NSNotificationCenter *nc;
|
||||||
textStorage = [[NSTextStorage alloc] init];
|
textStorage = [[NSTextStorage alloc] init];
|
||||||
|
|
||||||
layoutManager = [[NSLayoutManager alloc] init];
|
layoutManager = [[NSLayoutManager alloc] init];
|
||||||
/*
|
|
||||||
[textStorage addLayoutManager: layoutManager];
|
[textStorage addLayoutManager: layoutManager];
|
||||||
RELEASE (layoutManager);
|
RELEASE (layoutManager);
|
||||||
*/
|
|
||||||
|
|
||||||
textContainer = [[NSTextContainer alloc] initWithContainerSize: aSize];
|
textContainer = [[NSTextContainer alloc] initWithContainerSize: aSize];
|
||||||
[layoutManager addTextContainer: textContainer];
|
[layoutManager addTextContainer: textContainer];
|
||||||
RELEASE (textContainer);
|
RELEASE (textContainer);
|
||||||
|
|
||||||
/* FIXME: The following two lines should go *before* */
|
|
||||||
[textStorage addLayoutManager: layoutManager];
|
|
||||||
RELEASE (layoutManager);
|
|
||||||
|
|
||||||
/* The situation at this point is as follows:
|
/* The situation at this point is as follows:
|
||||||
|
|
||||||
textView (us) --RETAINs--> textStorage
|
textView (us) --RETAINs--> textStorage
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue