Re: NSTextView update
Re: NSTextView update
- Subject: Re: NSTextView update
- From: Douglas Davidson <email@hidden>
- Date: Tue, 01 Mar 2005 16:56:57 -0800
On 2005-03-01 16:50:14 -0800 Giuseppe Alletti
<email@hidden> wrote:
Hi, wich is the "proper" way to force a textview to update?
The textview I want to update has a custom text container. An event
(slidebar movement) changes a parameter in this text container, but I
can't manage to update the textView with the event...
To discard the existing layout, you can call
[[textView layoutManager]
invalidateLayoutForCharacterRange:NSMakeRange(0, [[textView
textStorage] length]) isSoft:NO actualCharacterRange:NULL];
Douglas Davidson
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden