NSTextView Not Drawing Text
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