Re: resize the NSWindow
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.