• 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: Ross Carter <email@hidden>
  • Date: Mon, 07 Nov 2011 10:42:32 -0500

On Nov 6, 2011, at 12:46 PM, Keary Suska wrote:

>  you should then be able to use lineFragmentUsedRectForGlyphAtIndex:effectiveRange: and passing its return value to -setSelectedRange:.

I don't think you want to change the selected range. You just want to draw a background color.
_______________________________________________

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

References: 
 >How to highlight the current line in NSTextView? (From: Nick <email@hidden>)
 >Re: How to highlight the current line in NSTextView? (From: Nick <email@hidden>)
 >Re: How to highlight the current line in NSTextView? (From: Keary Suska <email@hidden>)

  • Prev by Date: Re: Private Method?
  • Next by Date: Re: Allocating too much memory kills my App rather than returning NULL
  • Previous by thread: Re: How to highlight the current line in NSTextView?
  • Next by thread: [Q] loadView doesn't return?
  • Index(es):
    • Date
    • Thread