Re: NSTextView Text Length
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