• 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
Controlling control sizes when programatically resizing a window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Controlling control sizes when programatically resizing a window


  • Subject: Controlling control sizes when programatically resizing a window
  • From: "Sean McBride" <email@hidden>
  • Date: Wed, 15 Dec 2004 18:38:00 -0500

Hi all,

I have a window with some controls on the bottom.  At a certain point, I
need to remove these controls and make the window slightly shorter so
there is no empty space where the controls were.

I figured out how to remove the controls and resize the window.  But the
gap is not disappearing, instead the tableview (top of window) is
becoming shorter.  I suspect this has something to do with the autosizing
(springs in IB), but I'm not sure.

So I start like this:

|---------|
| table   |
| table   |
| table   |
|         |
| control |
|_________|

And want this:

|---------|
| table   |
| table   |
| table   |
|_________|

But I'm getting this:

|---------|
| table   |
| table   |
|         |
|         |
|_________|

Any suggestions how to handle this?

Thanks!

--
____________________________________________________________
Sean McBride, B. Eng                         email@hidden
Mac Software Designer               Montréal, Québec, Canada


 _______________________________________________
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

  • Follow-Ups:
    • Re: Controlling control sizes when programatically resizing a window
      • From: Andrew White <email@hidden>
  • Prev by Date: Re: NSMatrix Datasource?
  • Next by Date: Re: Aligning a subview element with text in an NSTextView (was: Finding vertical pos...)
  • Previous by thread: context help
  • Next by thread: Re: Controlling control sizes when programatically resizing a window
  • Index(es):
    • Date
    • Thread