• 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
Resizing an NSTextView Programmatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Resizing an NSTextView Programmatically
      • From: Aki Inoue <email@hidden>
  • Prev by Date: Memory Card insertion and NSWorkspace
  • Next by Date: Re: The purpose of this list..
  • Previous by thread: Memory Card insertion and NSWorkspace
  • Next by thread: Re: Resizing an NSTextView Programmatically
  • Index(es):
    • Date
    • Thread