Re: location of text in NSTextView
Re: location of text in NSTextView
- Subject: Re: location of text in NSTextView
- From: Douglas Davidson <email@hidden>
- Date: Mon, 23 Jan 2006 09:38:48 -0800
On Jan 21, 2006, at 7:02 PM, Nik Youdale wrote:
Yes, you are right, but i've given up on that now. Im trying a
different approach with a single textView, but somehow i need the
location of text within a specified range. I've tried using the
layoutManager's - (NSRect)boundingRectForGlyphRange:(NSRange)
glyphRange inTextContainer:(NSTextContainer *)aTextContainer
method, as i thought that would do exactly what i wanted, but
either I'm giving it the wrong parameters, or it doesn't actually
do what i am wanting.
Take a look at the LayoutManagerDemo sample code at developer.apple.com.
Douglas Davidson
_______________________________________________
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