Hot 1 |
Greetings all,
I hope you all can shed some light on how NSView autoresizes it's views. I've set everything up in IB and my subviews resize nicely (when I resize my window around with a mouse). However, if I do [myMainView setFrame:] with my new frame rect, nothing happens. All of my sub-views are still the original size (even though the main view has the correct dimensions). Child's resizeWithOldSuperviewSize: gets called, but it's still not appropriately sized.
Am I misunderstanding how autoresizing works? How can I trigger the autoresize machinery underneath NSView manually?
Soloved
[splitView setAutoresizingMask: NSViewWidthSizable | NSViewHeightSizable];
All time is GMT+8, 2013-5-23 08:40 , Processed in 2.800033 second(s), 14 queries .
Powered by Discuz! X1.5
© 2001-2010 Comsenz Inc.