• 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: 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.

References: 
 >deform a window (From: "John Q." <email@hidden>)
 >Re: deform a window (From: Sascha Kujawa <email@hidden>)

  • Prev by Date: get network transfert bytes how to?
  • Next by Date: Spelling Dictionary Languages
  • Previous by thread: Re: deform a window
  • Next by thread: Re: deform a window
  • Index(es):
    • Date
    • Thread