• 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
Getting the visible glyph range
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting the visible glyph range


  • Subject: Getting the visible glyph range
  • From: Nick Zitzmann <email@hidden>
  • Date: Fri, 10 Dec 2004 16:11:36 -0700

I have an NSTextView subclass. In this subclass I need to get the range of glyphs that are visible on the screen. How do I do this?

I already checked the archives, and one solution, <http://www.cocoabuilder.com/archive/message/2002/2/18/14388>, did not work. For some reason, -glyphRangeForBoundingRect:inTextContainer: is returning the range for _all_ of the glyphs in the text container instead of just the glyphs in the bounding rect. How do I get the range of all of the glyphs in the bounding rect?

Nick Zitzmann
<http://www.chronosnet.com/>

_______________________________________________
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


  • Follow-Ups:
    • Re: Getting the visible glyph range
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: Re: Kill other process's warning dialog
  • Next by Date: Re: Zooming images in NSView
  • Previous by thread: Re: NSObjectController - > getting it's keys
  • Next by thread: Re: Getting the visible glyph range
  • Index(es):
    • Date
    • Thread