custom NSTextContainer problem
custom NSTextContainer problem
- Subject: custom NSTextContainer problem
- From: Marco Binder <email@hidden>
- Date: Wed, 5 Mar 2003 14:43:50 +0100
Hello everybody,
I started playing around with the text system and ran into some
trouble. I created a custom subclass of NSTextContainer to layout text
into blocks of defined length. Example:
abc def ghi jkl mno pqr
stu vwx yza bcd efg hij
This works nicely. However, if I enter a (moderatly) long seqeunces of
characters, the layout manager lays out 4545 characters correctly but
then seems to ignore the remainingRect value and just starts a new line
(to emphasize: no newline character, no space nothing, its only
character after character):
abc def ghi jkl mno pqr
stu vwx
yza bcd efg hij
Going to this gap and inserting just one letter seems to force relayout
in this region and the gap disappears. Just: 4545 characters further
down, same problem again! Calling invalidateLayout on the whole range
from 0 to let say 10000 didnt do the jpb for me.
Anybody ever run into the same thing and found a solution?
Thanks,
Marco
--
|\ /| E-Mail: email@hidden WWW: www.marco-binder.de
| \/ | Telefon: 07531 / 94 19 94 Fax: 07531 / 94 19 92
| |ARCO Snail-Mail: Banater Str. 3 - 78467 Konstanz
BINDER _____________________________________________________
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.