• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Can I use NSTextView this way?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Can I use NSTextView this way? (From: Douglas Davidson <email@hidden>)

  • Prev by Date: Re: Shell script problem (PB)
  • Next by Date: [OT] miniaturized files in Dock
  • Previous by thread: Re: Can I use NSTextView this way?
  • Next by thread: Re: Can I use NSTextView this way?
  • Index(es):
    • Date
    • Thread