|
From: | Pierre-Yves Rivaille |
Subject: | Re: Problems with NSTextStorage |
Date: | Mon, 11 Feb 2002 17:57:15 +0100 |
> But doing >> storage = [[NSTextStorage alloc] initWithString:aString
attributes:nil];
> lm = [[NSLayoutManager alloc] init]; > [storage addLayoutManager:lm]; > > does not work, Thanks - should be fixed - try again from CVS
it seems like your changes introduced a bug : when you use [NSTextView -initWithFrame:] then [_layoutManager firstTextView] is equal to nil it can be fixed easily by adding the following line in -buildUpTextNetwork: textContainer = [[NSTextContainer alloc] initWithContainerSize: aSize]; -> [textContainer setTextView: self]; [layoutManager addTextContainer: textContainer]; RELEASE (textContainer);However this is more a hack than a bugfix, therefore I thought that you may want to have a look.
bye Pierre-Yves
[Prev in Thread] | Current Thread | [Next in Thread] |