Skip navigation.
 
mlRe: Rounded selection rectangles in NSTextView (was: NSBezierPath geometry question...)
FROM : Keith Blount
DATE : Wed Apr 13 22:23:17 2005

Many thanks for this - *really* appreciated. It is
looking very good.

The corner rounding is looking much more even, though
there is still a problem where the top corners look
square if there is only one letter highlighted (see
the floating "d" and "v" in the last two paragraphs. I
am looking through now trying to figure out why this
might be...

> The other thing I
> want to do is optimize the
> setNeedsDisplayInRect:avoidAdditionalLayout:
> method, because at the moment it's redrawing the
> entire text view very
> often.


I'm not really sure what to do about this. I overrode
setNeedsDisplayInRect: so that it always redraws the
visible rect, because otherwise it will only redraw
text below the current edited range, which can lead to
drawing glitches if the editing causes a resize in one
of the highlight bubbles...

Many thanks again,
Keith


       
__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/

Related mailsAuthorDate
mlRounded selection rectangles in NSTextView (was: NSBezierPath geometry question...) Keith Blount Apr 13, 20:06
mlRe: Rounded selection rectangles in NSTextView (was: NSBezierPath geometry question...) Jonathon Mah Apr 13, 21:27
mlRe: Rounded selection rectangles in NSTextView (was: NSBezierPath geometry question...) Jonathon Mah Apr 13, 21:31
mlRe: Rounded selection rectangles in NSTextView (was: NSBezierPath geometry question...) Keith Blount Apr 13, 22:23
mlRe: Rounded selection rectangles in NSTextView (was: NSBezierPath geometry question...) Keith Blount Apr 13, 22:43