• 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: NSTextView selection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextView selection


  • Subject: Re: NSTextView selection
  • From: Charlie Dickman <email@hidden>
  • Date: Mon, 04 Jun 2012 13:24:15 -0400

You can use an NSTextView delegate and NSFormatters to adjust the selection as it is being made.

On Jun 4, 2012, at 1:10 PM, ecir hana wrote:

> Hello,
>
> I have a NSTextView and when I select all the text, all the lines get
> highlighted from left to right margin, except the last line which is
> highlighted from left margin to the last character on line. Please, is it
> possible to highlight the last line in the same way as the other ones are,
> i.e. to highlight it from left to very right?
>
> I think I need to use "setExtraLineFragmentRect:usedRect:textContainer:" of
> NSLayoutManager but I'm not sure how to proceed and if it's even the right
> way of doing this.
>
> Thanks in advance,
>
> Ecir Hana
> _______________________________________________
>
> 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

Charlie Dickman
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

References: 
 >NSTextView selection (From: ecir hana <email@hidden>)

  • Prev by Date: Re: NSTextView selection
  • Next by Date: Re: FSEventStream advice
  • Previous by thread: Re: NSTextView selection
  • Next by thread: can't hide scrollbar on NSTableView
  • Index(es):
    • Date
    • Thread