• 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: resize the NSWindow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: resize the NSWindow


  • Subject: Re: resize the NSWindow
  • From: Nathan Day <email@hidden>
  • Date: Mon, 5 Aug 2002 20:20:21 +0930

On Monday, August 5, 2002, at 08:18 PM, Chong Hiu Pun wrote:

1.) How to remove the NSTextField from its superview?

[[theTextField retain] removeFromSuperview];

to insert

[theContentView addSubview:theTextField];
[theTextField release];

make sure you remove before shrinking you window and add after expanding it again.

2.)There are 6 springs for NSTableView: up, down, right, left, inside
vertical, inside horizontal. Is it only to turn on the up and down spring?

the very bottom spring, that lets the space between the bottom of the NSTableView and the bottom of the window change, don't turn on the top one because you want that space to remain fixed.

3.) Between the NSTableView and NSTextField, actually there are a few
buttons. But the button need to be remained under the NSTableView after
resize. So I also need to turn on the up and down spring of all the button?

Here you want the reverse, the space between the top of the buttons and the top of the window should change so turn the spring on the top on and leave the bottom one off so that bottom space is fixed.

Nathan Day
http://homepage.mac.com/nathan_day/
_______________________________________________
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: 
 >Re: resize the NSWindow (From: "Chong Hiu Pun" <email@hidden>)

  • Prev by Date: Re: resize the NSWindow
  • Next by Date: Re: resize the NSWindow
  • Previous by thread: Re: resize the NSWindow
  • Next by thread: Re: resize the NSWindow
  • Index(es):
    • Date
    • Thread