Dynamically resizing NSView
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.