Re: Resizing views
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