Re: Rounded selection rectangles in NSTextView (was: NSBezierPath geometry question...)
Re: Rounded selection rectangles in NSTextView (was: NSBezierPath geometry question...)
- Subject: Re: Rounded selection rectangles in NSTextView (was: NSBezierPath geometry question...)
- From: Keith Blount <email@hidden>
- Date: Wed, 13 Apr 2005 13:43:21 -0700 (PDT)
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
> 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...
I fixed this (hopefully)... It was caused by the
simple fact that the radius for the top corners was
being calculated from the startPoint, which is half
way between the top left and top right corners,
whereas it should be calculated between the corners
themselves (thus the radius was half what it should
be). The new .m file is attached.
Still haven't optimised drawInRect:, though - I would
be very grateful for any suggestions you have.
Thanks again,
Keith
__________________________________
Do you Yahoo!?
Make Yahoo! your home page
http://www.yahoo.com/r/hs
Attachment:
BezierTextViewmNew.zip
Description: BezierTextViewmNew.zip
_______________________________________________
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