• 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: Resizing Windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Resizing Windows


  • Subject: Re: Resizing Windows
  • From: Brendan Younger <email@hidden>
  • Date: Tue, 14 May 2002 18:42:09 -0400

On Tuesday, May 14, 2002, at 05:40 PM, Peter Thorson wrote:

I need to programaticly resize a window. I would like to do this from teh top left corner not the bottom left. Is there a way to do that without subclassing NSWindow with a resizeFromRight method. What I want to do is put an image in the window and resize image to window without the unusual behavior of the window resizing to the bottom left.

You can programmatically zoom the window by calling -performZoom, or, if you don't want the zoom widget to be highlighted, just -zoom. Then, in your window's delegate, implement - (NSRect)windowWillUseStandardFrame:(NSWindow*)window defaultFrame:(NSRect)defaultFrame to be able to control exactly where the window resizes to since the frame passed in is in global coordinates.

Brendan Younger
_______________________________________________
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.

References: 
 >Resizing Windows (From: Peter Thorson <email@hidden>)

  • Prev by Date: Collision problem solved (sorta...)
  • Next by Date: getpeername()
  • Previous by thread: Resizing Windows
  • Next by thread: Re: Resizing Windows
  • Index(es):
    • Date
    • Thread