Re: deform a window
Re: deform a window
- Subject: Re: deform a window
- From: "John Q." <email@hidden>
- Date: Thu, 23 Jan 2003 16:08:10 +0100
Hey cool thank you!!
Can I make a window transparent with this funktion too?
Thanks
John
Am Donnerstag, 23.01.03, um 10:18 Uhr (Europe/Budapest) schrieb Sascha
Kujawa:
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.
_______________________________________________
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.