Re: deform a window
Re: deform a window
- Subject: Re: deform a window
- From: Sascha Kujawa <email@hidden>
- Date: Thu, 23 Jan 2003 10:18:55 +0100
is it possible to deform, like another high, when i have made a
method like openwindow?
must I bring the window to an outlet with the IB?
I just tried to implement an action method, so when
clicking a button of that window, it will resize. I am just
starting to learn cocoa, but maybe this code inspires?
And of course I am also interested in other options :)
- (IBAction)SetSizeY:(id)sender
{
NSRect myRect;
NSWindow *myWindow = [sender window];
myRect = [myWindow frame];
myRect.size.height = 400.0;
[myWindow setFrame:myRect display:YES];
}
Not sure if I need to add some retain/release but it works :)
--
Sascha Kujawa
http://www.zeitfraktur.de
_______________________________________________
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.