mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 23:10:38 +00:00
Small improvements on XIB loading.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30023 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
68ce541e5d
commit
42b91d0695
3 changed files with 34 additions and 25 deletions
|
@ -1153,12 +1153,15 @@ to this method from the text container or layout manager.
|
|||
{
|
||||
NSLayoutManager *lm = _layoutManager;
|
||||
unsigned int index = [[lm textContainers] indexOfObject: _textContainer];
|
||||
NSTextStorage *ts = _textStorage;
|
||||
|
||||
RETAIN(self);
|
||||
RETAIN(ts);
|
||||
[_textContainer setTextView: nil];
|
||||
[lm removeTextContainerAtIndex: index];
|
||||
[lm insertTextContainer: newContainer atIndex: index];
|
||||
[newContainer setTextView: self];
|
||||
RELEASE(ts);
|
||||
RELEASE(self);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue