Hello all,

I am working on a word processing problem. I have a paginated view that has multiple text containers and text views laid out to form pages.

I have an intermittent bug where one line of text from another text view/text container gets overlaid onto a line from the "current" text view/text container. I think this always happens with the first lines, such that one line is drawn on the top of the other line. The "ghosted line" is still visible in the second container, and both lines change if I edit that line. I can click on the text view or scroll and the "ghost" line of text will often disappear or flicker and reappear (perhaps as the text view is displayed?).

I think I've narrowed the problem down to calling NSLayoutManager's method "rectArrayForGlyphRange". Basically I think that if I call this and ask for a glyph range that is longer than what is contained in the current text container, this is somehow causing other text to bleed over. The doc's state that these arrays are reused by the layout manager.

Has anyone else run into this? Is this the expected behavior?

Thanks - Andrew Hughes
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to