Re: NSWindow resize problems
Re: NSWindow resize problems
- Subject: Re: NSWindow resize problems
- From: Nathan Kinsinger <email@hidden>
- Date: Sun, 27 Jul 2008 02:11:06 -0600
On Jul 26, 2008, at 9:02 AM, Jacob Ole Juul Kolding wrote:
Hello List
I've implemented at main window in IB and set resize attributes for
all my objects which works as desired, but I have two problems.
First, when i maximize the app the objects in the window are resize
but not placed properly.
meaning that a large empty space resides in the left side of the
window?
Make sure that the leftmost strut in the Autosizing control is set,
otherwise the distance from the left edge of the window to your
controls will vary depending on the size of the window.
Second, I have a NSTableView with a single column in my window.
The column doesn't automatically resize to fit the width of the table?
Make sure to:
1) resize the column in IB to match the size of the table as it exists
in the nib
2) set all the strut and springs for the NSTableView (this is for how
it resizes inside the NSScrollView, not the window)
(these next ones are the defaults, but you may have changed them so
double check)
3) set the Column Sizing popup for the NSTableView to "First Column
Only" or "Last Column Only"
4) set the Resizing checkbox for the NSTableView
5) set Resizes With Table for the NSTableCloumn
Also, if it makes sense for your view, you may want to set the Maximum
Constraint of the NSTableColumn to some large number (30" monitors are
2560 pixels wide today and people can have two or more monitors next
to each other, the default is 1000 pixels)
Can anyone tell me how to solve these issues?
Jacob Kolding
email@hidden
--Nathan
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden