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 <eveningn...@gmail.com> 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 (Cocoa-dev@lists.apple.com)
> 
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/ddavidso%40apple.com
> 
> This email sent to ddavi...@apple.com
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to