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