• 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
Resize NSWindow Programatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Resize NSWindow Programatically


  • Subject: Resize NSWindow Programatically
  • From: Brian Amerige <email@hidden>
  • Date: Mon, 04 Sep 2006 23:38:32 -0400

Hi all,

I'm looking to resize my NSWindow Programatically, after my disclosure triangle is toggled. I've got everything setup as far as the methods that need to be in place to allow it, I'm just lost as far as how to actually resize the window programatically. Here's my code:

-(IBAction)toggleNameInfo:(id)sender
{
	if([nameView isHidden])
	{
		[nameView setHidden:NO];
	}
	else
	{
		[nameView setHidden:YES];
	}
}

So, I've got my disclosure triangle manipulating my view properly, but I need to resize the window (remove from bottom up not top down like Cocoa-Java's method for window resizing does). I looked at Apple's documentation for NSWindow, but I really don't know where to go with this.

Thanks in advance!

Brian Amerige
http://extendmac.com
http://cocoaforum.com


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Resize NSWindow Programatically
      • From: Cameron Hayne <email@hidden>
    • Re: Resize NSWindow Programatically
      • From: Dimitri Bouniol <email@hidden>
    • Re: Resize NSWindow Programatically
      • From: email@hidden
  • Prev by Date: Re: Syntactic sugar
  • Next by Date: Re: Resize NSWindow Programatically
  • Previous by thread: [SOLVED] I'm having trouble retaining a NSColor
  • Next by thread: Re: Resize NSWindow Programatically
  • Index(es):
    • Date
    • Thread