• 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 Text Length
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextView Text Length


  • Subject: Re: NSTextView Text Length
  • From: Graham Cox <email@hidden>
  • Date: Wed, 16 Apr 2014 10:20:27 +1000

On 16 Apr 2014, at 9:57 am, Gordon Apple <email@hidden> wrote:

> Is there any way to get a notification or set an observer on NSTextView¹s
> used text length? After much research, I have not found a way other than to
> pole the layout manager for usedRectForTextContainer.


The delegate is sent -textDidChange:, use that to ask for the usedRect.

--Graham



_______________________________________________

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: NSTextView Text Length
      • From: Gordon Apple <email@hidden>
References: 
 >NSTextView Text Length (From: Gordon Apple <email@hidden>)

  • Prev by Date: NSTextView Text Length
  • Next by Date: Re: NSTextView Text Length
  • Previous by thread: NSTextView Text Length
  • Next by thread: Re: NSTextView Text Length
  • Index(es):
    • Date
    • Thread