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

Re: Dynamically resizing NSView


  • Subject: Re: Dynamically resizing NSView
  • From: Mike Ferris <email@hidden>
  • Date: Mon, 30 Dec 2002 12:31:02 -0800

Your NSView should observe the NSTextView's NSViewFrameDidChangeNotification and can then adapt its own size when the NSTextView's size changes.

Mike


Begin forwarded message:

From: "Shoaib" <email@hidden>
Date: Mon Dec 30, 2002 5:59:59 AM US/Pacific
To: "email@hidden" <email@hidden>, "email@hidden" <email@hidden>
Subject: Dynamically resizing NSView

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.
_______________________________________________
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.

References: 
 >Dynamically resizing NSView (From: "Shoaib" <email@hidden>)

  • Prev by Date: Re: Custom sheets without going application modal?
  • Next by Date: Re: NSKeyBinding suppressCapitalizedKeyWarning?
  • Previous by thread: Dynamically resizing NSView
  • Next by thread: Using Protocols
  • Index(es):
    • Date
    • Thread