Re: location of text in NSTextView
Re: location of text in NSTextView
- Subject: Re: location of text in NSTextView
- From: Nik Youdale <email@hidden>
- Date: Sun, 22 Jan 2006 14:02:14 +1100
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.
- Nik
On 22/01/2006, at 1:52 PM, Eamon Ford wrote:
I know this isn't exactly an answer to your question, but I think a
few weeks ago you wanted to make an Address Book-style text view?
Tryst (http://trystx.com/) is an open source app that does this, in
case you haven't heard of it.
On Jan 21, 2006, at 6:40 PM, Nik Youdale wrote:
Hi,
Is there any way to get the location (either an NSRect or an
NSPoint) of text within a specified range in an NSTextView?
- Nik
_______________________________________________
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
_______________________________________________
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