Re: IB - NSTableView Single Column Header Issue
Re: IB - NSTableView Single Column Header Issue
- Subject: Re: IB - NSTableView Single Column Header Issue
- From: Cody Garvin <email@hidden>
- Date: Thu, 27 Dec 2012 16:44:41 -0800
Hi Keary,
Yah, I wasn't sure how to describe it :)
Either way, I think I figured it out, and there is a bit more to it.
First of all, yah if you resize the table less than where that bar is, then resize it back to where you want it, it goes away.
The second step is to click on the Table Column and make sure resize is set to "Autoresizes with Table"
The third step is to click on the Size Inspector for the Table Column and make sure the maximum is set to something outrageous… 100000?
The fourth step is to disable horizontal scrolling (optional, not really necessary).
Finally, what was really throwing me off, after doing all of this, I have my scroll bars to always show. So there was always about a 18-20px deadspace section above my vertical scroll bar. Once I changed my configuration to "Show Scroll bars: When Scrolling", everything was solved.
Thanks for the feedback!
- Cody
On Dec 27, 2012, at 4:29 PM, Keary Suska <email@hidden> wrote:
> On Dec 27, 2012, at 5:11 PM, Cody Garvin wrote:
>
>> I've figured this one out before, but can't seem to get this to work after a few hours of trying.
>>
>> Problem: Can not get single header column to match single column in NSTableView
>>
>> Steps to reproduce:
>> 1) Open Xcode
>> 2) Create Cocoa Application
>> 3) Open MainMenu.xib
>> 4) Click on Window
>> 5) Drag a NSTableView to the xib
>> 6) Make table 1 column (Notice how the second empty header sticks around, one way around this is to resize it, but the bar is still there)
>>
>> How do you get rid of the empty header column? If you resize it, it just moves the resize column bar about 2px away from the right side, but still becomes a problem when scrollbars appear.
>>
>> Any ideas?
>
> It's not actually an empty header, it is just "dead" space drawn because the column width is smaller than the table width. Also with default options, if you shorten the table width until it is smaller than the column width, and then enlarge it to the desired width you will see that the column width will keep to the table width and voila.
>
> HTH,
>
> Keary Suska
> Esoteritech, Inc.
> "Demystifying technology for your home or business"
>
_______________________________________________
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