NSLayoutManager boundingRectForGlyphRange:actualCharacterRange: inconsistent results?
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