• 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: Resizing views
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Resizing views


  • Subject: Re: Resizing views
  • From: Andrew Platzer <email@hidden>
  • Date: Wed, 21 Nov 2001 11:40:35 -0800

On Wednesday, November 21, 2001, at 03:11 , Mark's Studio wrote:
I have a view with 42 subviews 6 rows 7 columns no space between them
it's all set up in IB with the correct springs and it sort of works,
but when i resize the window there will be gab's between the views.

If i look at the setFrame method in the subviews i can see that
it's not the right size.

What should i overwrite in the superView to do my own resizing,
and how?

Override -[NSView resizeSubviewsWithOldSize:]. In that method, for each subview, you can either call -[NSView resizeWithOldSuperviewSize:] or call -[NSView setFrame:] set the subview frame explicitly.
See NSView documentation for details.

Andrew
__________________________________________________________________
A n d r e w P l a t z e r
A p p l i c a t i o n F r a m e w o r k s
A p p l e


References: 
 >Resizing views (From: "Mark's Studio" <email@hidden>)

  • Prev by Date: Re: Mutability
  • Next by Date: Re: launchApplication
  • Previous by thread: Resizing views
  • Next by thread: CD format
  • Index(es):
    • Date
    • Thread