FROM : Keith Blount
DATE : Wed Apr 13 22:43:21 2005
> 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
DATE : Wed Apr 13 22:43:21 2005
> 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
| Related mails | Author | Date |
|---|---|---|
| Keith Blount | Apr 13, 20:06 | |
| Jonathon Mah | Apr 13, 21:27 | |
| Jonathon Mah | Apr 13, 21:31 | |
| Keith Blount | Apr 13, 22:23 | |
| Keith Blount | Apr 13, 22:43 |






Cocoa mail archive

