• 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
NSTextView/NSLayoutManager bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextView/NSLayoutManager bug?


  • Subject: NSTextView/NSLayoutManager bug?
  • From: "Mike R. Manzano" <email@hidden>
  • Date: Mon, 11 Sep 2006 10:34:10 -0700

Hi all,

I have a bug that I believe is occurring during the rendering of an NSTextView. The application I am writing basically flows text between several text views (one text storage, one layout manager, multiple containers and text views). These text views are resized according to window resize and zoom events. Sometimes during a re-layout caused by a window resize, the first line of text on a text view gets written over the first line of the preceding text view. Here is an illustration: <http://homepage.mac.com/alephx01/textbug.png>. The word “approach” that is overwriting the first line is actually the first line of the subsequent text view, which, BTW is rendering correctly.

I have stepped through the assigned containers and assigned fragments rects as modeled by NSLayoutManager right before it is all rendered to the screen, and everything looks fine (as far as I can tell). It seems that the problem occurs during view refresh.

Further, if I start typing into any of the views, the problem “corrects itself” and everything is rendered properly (due to a subsequent view redraw).

My question is, what is the best place to drop an NSLog or some debugging code so I can actually watch (or perhaps step through) as each fragment rect is rendered to the screen? I‘d like to do this so that I can see if the NSLayoutManager model is somehow being corrupted during drawing.

Thanks,

    ~     Mike
        alephx01 (at) mac (dot) com

BTW, I just thought I‘d mention that this list is great and I always get fast responses. I feel guilty about asking so many questions :)


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: NSTextView/NSLayoutManager bug?
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: Re: clicking through
  • Next by Date: Re: Bind to single table selection but not multiple?
  • Previous by thread: NSSavePanel default name and prepareSavePanel:
  • Next by thread: Re: NSTextView/NSLayoutManager bug?
  • Index(es):
    • Date
    • Thread