• 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
NSLayoutManager boundingRectForGlyphRange:actualCharacterRange: inconsistent results?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSLayoutManager boundingRectForGlyphRange:actualCharacterRange: inconsistent results?


  • Subject: NSLayoutManager boundingRectForGlyphRange:actualCharacterRange: inconsistent results?
  • From: Ben Lachman <email@hidden>
  • Date: Wed, 12 Mar 2008 02:26:12 -0400

To place markers in my rulerview I'm using NSLayoutManager's boundingRectForGlyphRange:actualCharacterRange: to get a rect of a chunk of text that I can base my marker location off of. However when I do programatic updates to my text storage and reset markers the same function gives me rects that don't always account for some newly wrapped lines. Has anyone run into anything like this? Or is there a better way of getting the location of a range of characters than using this method?

Thanks,
->Ben

--
Ben Lachman
Acacia Tree Software

http://acaciatreesoftware.com

email@hidden
740.590.0009



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: warning: assignment from distinct Objective-C type
  • Next by Date: Encoding NSString for URL
  • Previous by thread: Re: Prevent click through (Tiger and Leopard)
  • Next by thread: Encoding NSString for URL
  • Index(es):
    • Date
    • Thread