Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.