Re: NSTextView Text Length

2014-04-15 Thread Gordon Apple
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" wrote: > > On 16 Apr 2014, at 9:57 am, Gordon Apple wrote: > >> > Is there any way to get a notification or set an observer on NSTextView¹s >> > used text

Re: NSTextView Text Length

2014-04-15 Thread Graham Cox
On 16 Apr 2014, at 9:57 am, Gordon Apple 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

NSTextView Text Length

2014-04-15 Thread Gordon Apple
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. This must exist internally because the textView has to communicate with the containing scrollVi