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

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


References: 
 >NSTextView update (From: Giuseppe Alletti <email@hidden>)

  • Prev by Date: NSTextView update
  • Next by Date: Load images?
  • Previous by thread: NSTextView update
  • Next by thread: Re: NSTextView update
  • Index(es):
    • Date
    • Thread