• 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
Re: TextView resize
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TextView resize


  • Subject: Re: TextView resize
  • From: Alex Keresztes <email@hidden>
  • Date: Tue, 12 Mar 2002 11:20:55 -0600

Thanks but what if I dont have an NSScrollView attached to my textview?

Basically what im trying to accomplish is that if the [textview visiblerect] is
smaller than the [textview frame], i want to resize the textview so that the
visible rect is the size of the textview frame and all of the contents of the
textview are displayed.

Alex

On Tuesday, March 12, 2002, at 11:00 AM, Matt Neuburg wrote:

On Sun, 10 Mar 2002 23:43:53 -0600, Alex Keresztes <email@hidden> said:

How do I resize a NSTextView programmatically to a specific size?

With setFrameSize. But you probably won't see much happen when you do this.
An NSTextView is typically the document view of an NSScrollView, and it is
this that you are probably wishing to resize. And you do that with (you
guessed it) setFrameSize. m.
--

matt neuburg, phd = email@hidden, http://www.tidbits.com/matt
pantes gar anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart. http://www.tidbits.com/
_______________________________________________
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.

References: 
 >Re: TextView resize (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Drag and drop postscript printing
  • Next by Date: Re: Slow Project Builder...
  • Previous by thread: Re: TextView resize
  • Next by thread: Re: TextView resize
  • Index(es):
    • Date
    • Thread