Re: Resizing Windows
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.