Skip navigation.
 
mlProblem with TextView drawing
FROM : Max Seelemann
DATE : Thu Oct 21 22:19:21 2004

Hi there.

I have a problem with my textview. It's hard to describe, so please
have a look at this movie:

<http://www.blue-tec.com/private/stuff/snapshot.mov>

The text in the lower part isn't redrawn (correctly ?) when I do a
edit. Sometimes it happens that a line is drawn twice and one can't
read anything. I must add that this behaviour doesn't appear all the
time and that it somehow becomes heavier the longe you edited the
text...

I've customized this textview and added a custom TextStorage and a
custom LayoutManager. The TextStorage *should* work as a normal one,
but in fact, it adds some counting functionality and does some
customization to the attributesAtIndex: function of NSTextStorage. (But
I don't think that this should be the problem). I call -
(void)edited:(unsigned)editedMask range:(NSRange)range
changeInLength:(int)delta; every time I do a change and everything
works fine except of this drawing issue. The customization I did to the
LayoutManager just affect the drawing procedures (I added hidden
character drawing) and shouldn't have any effect on glyph layout.

Please, is anyone having an idea out there?
thanks,

Max

Related mailsAuthorDate
No related mails found.