• 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
Re: How to find the insertion point of NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to find the insertion point of NSTextView


  • Subject: Re: How to find the insertion point of NSTextView
  • From: Ben Lachman <email@hidden>
  • Date: Tue, 14 Mar 2006 16:07:40 -0500

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
  • Follow-Ups:
    • Re: How to find the insertion point of NSTextView
      • From: Kenny Leung <email@hidden>
References: 
 >How to find the insertion point of NSTextView (From: Kenny Leung <email@hidden>)

  • Prev by Date: Re: Embedding a framework in a project
  • Next by Date: Re: Xcode won't compile a Universal Binary
  • Previous by thread: How to find the insertion point of NSTextView
  • Next by thread: Re: How to find the insertion point of NSTextView
  • Index(es):
    • Date
    • Thread