NSTextView setNeedsDisplayInRect:avoidAdditionalLayout:
NSTextView setNeedsDisplayInRect:avoidAdditionalLayout:
- Subject: NSTextView setNeedsDisplayInRect:avoidAdditionalLayout:
- From: Michael Link <email@hidden>
- Date: Thu, 4 May 2006 14:07:44 -0500
I've noticed that sometimes when I call
setNeedsDisplayInRect:avoidAdditionalLayout: with the bounds of my
custom NSTextAttachmentCell sometimes it doesn't receive a
drawWithFrame:... call, although the NSTextView gets a drawRect:
call. More specifically the background is redrawn (white) but the
cell doesn't get it's drawWithFrame:... call to draw itself. If I
change the setNeedsDisplayInRect:avoidAdditionalLayout: call to
setNeedsDisplay: then everything works (but of course everything is
redrawn unnecessarily). It appears that this drawing glitch happens
to cells that are closer to the left margin, but never ones next to
the right margin. Has anyone else encountered this before?
--
Michael
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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