Re: Can I use NSTextView this way?
Re: Can I use NSTextView this way?
- Subject: Re: Can I use NSTextView this way?
- From: Fritz Anderson <email@hidden>
- Date: Wed, 1 Oct 2003 15:11:25 -0500
This turned out to be easier than I feared -- I balked initially at the
prospect of having to convert back from glyph ranges to character
ranges -- but I'm doing it this way now, and my code actually looks a
bit cleaner.
-- F
On 1 Oct 2003, at 12:30 PM, Douglas Davidson wrote:
I would subclass NSLayoutManager and override
drawGlyphsForGlyphRange:atPoint:, to do special drawing for certain
characters in addition to or instead of the standard drawing.
NSTextView's drawRect: is a little tricky, and you probably don't want
to replace it entirely--although you might override it to do some
extra drawing in addition to what it normally does.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.