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

Dynamically resizing NSView


  • Subject: Dynamically resizing NSView
  • From: "Shoaib" <email@hidden>
  • Date: Mon, 30 Dec 2002 13:59:59 GMT

Background:

I have an NSView (inside a NSScrollView) that contains several subviews with one of them being a NSTextView. The NSTextView is the last subview, located at the bottom of the NSView. I have setup the NSTextiew to grow vertically as the user is typing text into it.

The Problem:

What I want to do is resize the NSView as the NSTextView grows vertically (as the user is typing text in it) so the NSScrollView that encloses the parent NSView shows the vertical scrollbar.

Another problem I have is if I fill up the NSTextView, it starts growing vertically but the text in it doesn't display properly and new lines start overwriting previous lines.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Follow-Ups:
    • Re: Dynamically resizing NSView
      • From: Mike Ferris <email@hidden>
  • Prev by Date: Re: straight-C DNS lookup with timeout?
  • Next by Date: Using Protocols
  • Previous by thread: Re: NSSound broken in 10.2?
  • Next by thread: Re: Dynamically resizing NSView
  • Index(es):
    • Date
    • Thread