• 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: Gordon Apple <email@hidden>
  • Date: Tue, 15 Apr 2014 21:44:33 -0500
  • Thread-topic: NSTextView Text Length

Ah.  Somehow, I totally missed the fact that NSText has its own delegate
protocol.  That did it. Thanks.

On 4/15/14 7:20 PM, "Graham Cox" <email@hidden> wrote:

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


References: 
 >Re: NSTextView Text Length (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: NSTextView Text Length
  • Next by Date: What the actual heck?
  • Previous by thread: Re: NSTextView Text Length
  • Next by thread: What the actual heck?
  • Index(es):
    • Date
    • Thread