• 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 Not Drawing Text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextView Not Drawing Text


  • Subject: NSTextView Not Drawing Text
  • From: Seth Willits <email@hidden>
  • Date: Thu, 7 Dec 2006 22:35:05 -0800

I'm trying to track down a bug and I'm curious if any of you can offer any suggestions.

In my app, a document window is opening and is going to display any amount of text in an NSTextView. For some reason, the window opens and the text view is empty, then a moment later it fills with text.

When the window displays, the text view does get a drawRect and the layout manager is asked to draw glyphs, the text storage is asked for attributes etc, but nothing is drawn. Even the text view's background color is not drawn.

The first drawRect is called from [document showWindows] when opening the document, has a full rect, all the text and attributes are setup, but the text view is blank. It takes a few more times being sent a drawRect by the run loop (why it's being called multiple times after that I'm not really sure), but the last one triggers it to draw the text (and the background color).

Any ideas?


-- Seth Willits



_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSTextView Not Drawing Text
      • From: Seth Willits <email@hidden>
    • Re: NSTextView Not Drawing Text
      • From: Seth Willits <email@hidden>
  • Prev by Date: Re: Date + Formatter + Text Field Strangeness
  • Next by Date: Re: WebKit if-modified
  • Previous by thread: Re: animating windows fade in/out
  • Next by thread: Re: NSTextView Not Drawing Text
  • Index(es):
    • Date
    • Thread