Re: deform a window
Re: deform a window
- Subject: Re: deform a window
- From: Sascha Kujawa <email@hidden>
- Date: Thu, 23 Jan 2003 14:00:40 +0100
I just tried to implement an action method, so when
clicking a button of that window, it will resize.
But of course you can simply attach a custom View
and place the code into its awakeFromNib method.
In that case, you have to replace the "sender" by "self"
when obtaining the NSWindow pointer:
- (void)awakeFromNib
{
NSRect myRect;
NSWindow *myWindow = [self window];
myRect = [myWindow frame];
myRect.size.width = 800.0;
myRect.size.height = 100.0;
[myWindow setFrame:myRect display:YES];
}
--
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.