• 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
Updating NSTextView when it gets shorter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Updating NSTextView when it gets shorter


  • Subject: Updating NSTextView when it gets shorter
  • From: Graham Cox <email@hidden>
  • Date: Wed, 30 Apr 2008 20:53:56 +1000

In my app I have a NSTextView which is used as a temporary editor, being attached to another view while it edits some text, then removed when I'm done. This is set up to size vertically as the text is entered, and it does. While it's growing, all is well, but if it shrinks by one or more lines, the leftover lines are not updated, leaving them visible until something draws over them.

What's a good way to ensure that the text view gets updated properly at all times? I can't use textDidChange: because it's too late - the bounds/frame of the view has already been changed by that time. There must be something simple I'm just not seeing.


G. _______________________________________________

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


  • Follow-Ups:
    • Re: Updating NSTextView when it gets shorter [SOLVED]
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: Is there any compression library for Cocoa?
  • Next by Date: Re: Is there any compression library for Cocoa?
  • Previous by thread: Re: Is there any compression library for Cocoa?
  • Next by thread: Re: Updating NSTextView when it gets shorter [SOLVED]
  • Index(es):
    • Date
    • Thread