• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: deform a window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: deform a window
      • From: Sascha Kujawa <email@hidden>
References: 
 >Re: deform a window (From: Sascha Kujawa <email@hidden>)

  • Prev by Date: TextSizingExample
  • Next by Date: Faster Scroller
  • Previous by thread: Re: deform a window
  • Next by thread: Re: deform a window
  • Index(es):
    • Date
    • Thread