• 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 text views and flowing controls: HOW?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Resizing text views and flowing controls: HOW?


  • Subject: Resizing text views and flowing controls: HOW?
  • From: Oliver Donald <email@hidden>
  • Date: Wed, 2 Feb 2005 16:23:42 -0000

Title: Resizing text views and flowing controls: HOW?

Hi List,

I have a view in an application where, as a simple example, there is a multi-line label (NSTextField) under which sits a button.

The problem is that when I resize the window the wrapping on the textfield changes, and sometimes the end of the text wraps of the bottom. Is there a simple way to get the textfield view to expand to hold all of the text? And also to move the controls below the textview down accordingly, in effect anchoring them to the base of the textview above?

I tried using the [view sizeToFit] method but this resizes the view so it all fits on one line, and also provides no easy method of anchoring the button to it.

Thanks,
Oli



DISCLAIMER: The information contained in this e-mail is confidential and may be privileged. It is intended for the addressee only. If you are not the intended recipient, please delete this e-mail immediately. The contents of this email must not be disclosed or copied without the sender's consent. We cannot accept any responsibility for viruses, so please scan all attachments. The statements and opinions expressed in this message are those of the author and do not necessarily reflect those of the company. The company does not take any responsibility for the views of the author.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: + initialize docs conflict?
  • Next by Date: XCode rebuilds all the time
  • Previous by thread: problem in displaying the image with embedded cmyk profile
  • Next by thread: XCode rebuilds all the time
  • Index(es):
    • Date
    • Thread