Automatic resizing
Automatic resizing
- Subject: Automatic resizing
- From: Chris Backas <email@hidden>
- Date: Sat, 07 Sep 2002 22:10:38 -0400 (EDT)
- Priority: Normal
Hello all,
I asked a few days ago about adding new Subviews to a view to achieve behavior like Finder's new Find File dialog, and the answer I got was simple enough; So I've made a NIB with the view I want and I create a
new custom view object every time the user pressed the 'add' button, and then add it to the View meant to contain them.
Problem is, it doesn't resize to accomodate the new subview. I can set the new size for all the views all the way up the chain, but it seems like there's a more elegant way to do this. I have an NSWindow, with an
NSBox taking up most of it, and it's the NSBox I'm adding new views into. I'd like the NSBox to stretch to accomodate the new View, and the window to do the same. Apple programs which do this even make the
window animate when it occurs, so it seems that there'd be a simple way. I didn't see anything in the list archives though.
Thanks for any help.
Chris Backas
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.