FROM : Keith Blount
DATE : Mon Apr 11 21:19:25 2005
Many thanks for all the replies, much appreciated,
especially to Heinrich and Serge for the code
suggestions.
Unfortunately, the discussion on cubic and quadratic
polynomials is going right over the top of my head...
To try and clarify what I am trying to achieve, I
would be grateful if anyone with the time or interest
could take a look at this picture:
http://www.rumramruf.com/bezierPic.tiff
The text view subclass in this picture uses the code I
posted earlier in drawViewBackgroundInRect: to create
the bezier path selections. It may be hard to make out
in the picture, but the top-right corners have turned
out more rounded than the bottom corners, and I'm not
sure why. There are also other minor drawing glitches.
Given that this is what I am trying to achieve from a
rectArray generated by NSLayoutManager's
rectArrayForCharacterRange:..., I would be very
grateful if anybody could tell me what I am doing
wrong in the code I posted, or suggest a better way
altogether of doing it if there is one.
Many thanks again for all the help,
Keith
__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/
DATE : Mon Apr 11 21:19:25 2005
Many thanks for all the replies, much appreciated,
especially to Heinrich and Serge for the code
suggestions.
Unfortunately, the discussion on cubic and quadratic
polynomials is going right over the top of my head...
To try and clarify what I am trying to achieve, I
would be grateful if anyone with the time or interest
could take a look at this picture:
http://www.rumramruf.com/bezierPic.tiff
The text view subclass in this picture uses the code I
posted earlier in drawViewBackgroundInRect: to create
the bezier path selections. It may be hard to make out
in the picture, but the top-right corners have turned
out more rounded than the bottom corners, and I'm not
sure why. There are also other minor drawing glitches.
Given that this is what I am trying to achieve from a
rectArray generated by NSLayoutManager's
rectArrayForCharacterRange:..., I would be very
grateful if anybody could tell me what I am doing
wrong in the code I posted, or suggest a better way
altogether of doing it if there is one.
Many thanks again for all the help,
Keith
__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/






Cocoa mail archive

