Re: How to find the insertion point of NSTextView
Re: How to find the insertion point of NSTextView
- Subject: Re: How to find the insertion point of NSTextView
- From: Kenny Leung <email@hidden>
- Date: Tue, 14 Mar 2006 13:12:14 -0800
Thanks! This was not clear from the documentation.
-Kenny
On Mar 14, 2006, at 1:07 PM, Ben Lachman wrote:
You want -(NSRange)selectedRange which will return a 0 length range
at the location of the insertion point (assuming there isn't an
actual selection).
->Ben
On Mar 14, 2006, at 4:01 PM, Kenny Leung wrote:
Hi There.
I need to select the line that the cursor is currently on in an
NSTextView. However, I can't seem to find any API that will return
the location of the insertion point. Am I missing something?
Thanks!
-Kenny
_______________________________________________
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