Re: NSTableView Column Count
Re: NSTableView Column Count
- Subject: Re: NSTableView Column Count
- From: Nicholas Zaccardi <email@hidden>
- Date: Wed, 16 Mar 2011 11:44:45 -0400
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 <email@hidden> wrote:
> On Wed, Mar 16, 2011 at 8:09 AM, Nicholas Zaccardi
> <email@hidden> 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 (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