Okay.  This is not a problem per say, but let me make sure I understand you.

In order for a single column to fill the entire width of a scroll
view, I have to make the width of the column the width of the scroll
view - the scroll bars?

For example, a scroll view is 100 wide and my NSTableView is also 100
wide, but the one and only column is only 65 wide then I would have to
manually make it 100 in order for the column to make use of the full
NSTableView.  XCode/IB/Cocoa will not do that for me.

Then if I resize the window/Scroll/TableView will the column auto resize?

Thank you for helping me understand this!


On Wed, Mar 16, 2011 at 11:16 AM, Kyle Sluder <kyle.slu...@gmail.com> wrote:
> On Wed, Mar 16, 2011 at 8:09 AM, Nicholas Zaccardi
> <nicholas.zacca...@gmail.com> wrote:
>> That did not work for me, I resized it manually and it works, but I
>> want to have IB do it automatically.
>
> Have IB do what automatically? NSTableView doesn't autoresize its
> columns unless they fit the exact visible width of the enclosing
> scrollview. If you remove the last column, the tableview no longer
> fills the scroll view, and therefore will not autosize its columns as
> you resize it in Interface Builder.
>
> --Kyle Sluder
>
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to