Re: How to highlight the current line in NSTextView?
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