• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
custom NSTextContainer problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: iTunes playlist and ID number
  • Next by Date: Re: Functions in Cocoa
  • Previous by thread: Fwd: Re: iTunes playlist and ID number
  • Next by thread: (no subject)
  • Index(es):
    • Date
    • Thread