• 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 highlight the current line in NSTextView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to highlight the current line in NSTextView?


  • Subject: Re: How to highlight the current line in NSTextView?
  • From: Douglas Davidson <email@hidden>
  • Date: Fri, 04 Nov 2011 08:33:46 -0700

The NSLayoutManager will tell you.  Try taking a look at the conceptual documentation and some of the sample code for NSLayoutManager, and let me know if you have any problems.

Douglas Davidson

On Nov 4, 2011, at 6:19 AM, Nick <email@hidden> wrote:

> Hello
> Basically the question is about getting the NSRange of the line of
> NSTextView where the text input cursor is currently in.
> Word wraps are considered as legal 'new lines' - only one line should
> actually be highlighted.
>
> How could I do this (get an NSRange of a single line)?
> Thank you
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: How to highlight the current line in NSTextView?
      • From: Martin Hewitson <email@hidden>
References: 
 >How to highlight the current line in NSTextView? (From: Nick <email@hidden>)

  • Prev by Date: Re: Adventures in core-data, iCloud, and sandboxing
  • Next by Date: Re: Adventures in core-data, iCloud, and sandboxing
  • Previous by thread: How to highlight the current line in NSTextView?
  • Next by thread: Re: How to highlight the current line in NSTextView?
  • Index(es):
    • Date
    • Thread