Re: NSTextView field editor redrawing weirdness
Re: NSTextView field editor redrawing weirdness
- Subject: Re: NSTextView field editor redrawing weirdness
- From: Mike Abdullah <email@hidden>
- Date: Tue, 17 Oct 2006 09:20:12 +0100
On 16 Oct 2006, at 23:45, Douglas Davidson wrote:
On Oct 16, 2006, at 1:23 PM, Nick Zitzmann wrote:
Performance isn't actually the problem. The problem is I have some
background views that are placed in close proximity to the text
view, and every time the text view completely redraws itself, it
ends up drawing its background color over the top of the
background views, which doesn't look good. Turning off drawing the
background solves the problem, but then the text from the original
text field isn't overwritten, so it looks like the user is writing
over the top of the text. Is there any way of knowing when the
text view is going to completely redraw itself, and if so, then
what do I need to do? I suppose I could move the views out of the
way if it happens... Of course, I'd prefer for it not to happen.
When the text view causes the line with the insertion point to be
redrawn, it does so by the normal setNeedsDisplay... mechanism. If
you have something that doesn't work well with that--overlapping
sibling views, for example--then that would seem to be the source
of the problem.
Yes, you're not supposed to have overlapping views. Cocoa doesn't
support them yet and you will get strange drawing issues like that.
Mike.
Douglas Davidson
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
_______________________________________________
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