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

  • Prev by Date: Re: Xcode won't compile a Universal Binary
  • Next by Date: Magic key for IB palettes?
  • Previous by thread: Re: How to find the insertion point of NSTextView
  • Next by thread: Magic key for IB palettes?
  • Index(es):
    • Date
    • Thread