Resizing an NSTextView Programmatically
Resizing an NSTextView Programmatically
- Subject: Resizing an NSTextView Programmatically
- From: Alex Keresztes <email@hidden>
- Date: Wed, 15 May 2002 22:39:20 -0500
I want to be able to resize an NSTextView programmatically to a specific
size. I haven't been able to accomplish this correctly in my past efforts,
so I decided to resort to the list.
To be able to test this specific functionality, I created a sample
application that is simply an NSTextView in a window, and I try to resize
the TextView to 1/4 of the window size in the controller's awake from nib.
The NSTextView only has its "selectable" and "multiple fonts allowed"
properties on in IB (meaning it is not editable and does not contain a
scrollview).
Someone suggested in the past to do a [textView setFrameSize: newSize] but
that doesn9t work.
Any ideas/suggestions?
Alex
_______________________________________________
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.