• 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: Programatically resizing a window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Programatically resizing a window
      • From: Michael Heinz <email@hidden>
References: 
 >Programatically resizing a window (From: Michael Heinz <email@hidden>)

  • Prev by Date: Re: Programatically resizing a window
  • Next by Date: Aligning a subview element with text in an NSTextView (was: Finding vertical pos...)
  • Previous by thread: Re: Programatically resizing a window
  • Next by thread: Re: Programatically resizing a window
  • Index(es):
    • Date
    • Thread