Re: Programatically resizing a window
Re: Programatically resizing a window
- Subject: Re: Programatically resizing a window
- From: Jeff LaMarche <email@hidden>
- Date: Wed, 15 Dec 2004 13:15:48 -0500
On Dec 15, 2004, at 12:57 PM, Michael Heinz wrote:
Okay, I've googled for this and checked my books to no avail - I have
a document based app where the user is likely to open multiple
documents, one at a time. I'd like each successive document window to
open with the same size as its predecessor - but I can't figure out
how to do it. There doesn't seem to be any get/set size functionality
at all and all the tutorials talk about is setting the size in the nib
file.
[myWindow setFrame:windowsize display:YES animate:YES];
How fast it changes the size will depend on the speed of
animationResizeTime, which defaults to .2 (I think), but you can make
it more noticeable by making it slower, say 1 second...
_______________________________________________
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