Re: resize the NSWindow
Re: resize the NSWindow
- Subject: Re: resize the NSWindow
- From: Nathan Day <email@hidden>
- Date: Mon, 5 Aug 2002 18:42:10 +0930
You will have to change the y position also
NSRect aFrame = [myMainwin frame];
aFrame.origin.y += (aFrame.size.height - 300) ;
aFrame.size.height = 300 ; //original size is 400
[myMainwin setFrame:aFrame display:YES animate:YES];
On Monday, August 5, 2002, at 06:43 PM, Chong Hiu Pun wrote:
NSRect aFrame = [myMainwin frame];
aFrame.size.height = 300 ; //original size is 400
[myMainwin setFrame:aFrame display:YES animate:YES];
My window did become smaller. However, I want the window mimimized from
below
rather than above:
Nathan Day
http://homepage.mac.com/nathan_day/
_______________________________________________
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.