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

Re: NSWindow resize problems


  • Subject: Re: NSWindow resize problems
  • From: Jacob Ole Juul Kolding <email@hidden>
  • Date: Sun, 27 Jul 2008 12:49:40 +0200

I managed to get the table column to resize properly by following your instructions.

but as for the window itself:

Just to make sure, when you say leftmost strut in autosizing controls you mean the red spacers?
They are set for all objects in my window, but still the problem persists.
Another thing when I maximize and then resize the window a tiny bit the objects all fall into their correct place..?


Jacob Kolding
email@hidden


On Jul 27, 2008, at 10:11 AM, Nathan Kinsinger wrote:


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


References: 
 >NSWindow resize problems (From: Jacob Ole Juul Kolding <email@hidden>)
 >Re: NSWindow resize problems (From: Nathan Kinsinger <email@hidden>)

  • Prev by Date: Re: NSGraphicsContext restore crashes my xtension
  • Next by Date: Containers in Cocoa, adding objects to NSView programmatically?
  • Previous by thread: Re: NSWindow resize problems
  • Next by thread: creating a voice
  • Index(es):
    • Date
    • Thread