• 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: NSTableView Column Count
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSTableView Column Count
      • From: Kyle Sluder <email@hidden>
References: 
 >NSTableView Column Count (From: Nicholas Zaccardi <email@hidden>)
 >Re: NSTableView Column Count (From: Indragie Karunaratne <email@hidden>)
 >Re: NSTableView Column Count (From: Nicholas Zaccardi <email@hidden>)
 >Re: NSTableView Column Count (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Debugging a sleepless Mac
  • Next by Date: Re: NSTableView Column Count
  • Previous by thread: Re: NSTableView Column Count
  • Next by thread: Re: NSTableView Column Count
  • Index(es):
    • Date
    • Thread