NSTextView field editor redrawing weirdness
NSTextView field editor redrawing weirdness
- Subject: NSTextView field editor redrawing weirdness
- From: Nick Zitzmann <email@hidden>
- Date: Mon, 16 Oct 2006 14:07:08 -0600
I'm using a custom field editor in a few different windows. Normally,
the field editor only performs draws when the text is changed or the
caret drawing timer goes off. However, in one of my views, the field
editor constantly redraws the entire text view whenever the caret
drawing timer goes off.
When I break on -setNeedsDisplayInRect: inside the text view, the
caret timer is forcing a redisplay at the exact spot where the caret
is located with a width of 1. So far, so good. The problem is, when
the NSView superclass method is called, something inside the AppKit
is stretching the rectangle to cover the entire view. It's only
happening in one view, and I don't see anything noticeably different
in that one view.
I also tried breaking on -
setNeedsDisplayInRect:avoidAdditionalLayout: and confirmed that the
second argument is always NO. So what in the world could be causing
this behavior, and how do I stop it?
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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