• 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: Resizing NSScrollView/NSClipView to fit NSTableView width
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Resizing NSScrollView/NSClipView to fit NSTableView width


  • Subject: Re: Resizing NSScrollView/NSClipView to fit NSTableView width
  • From: Quincey Morris <email@hidden>
  • Date: Mon, 15 Aug 2016 15:54:00 -0700
  • Feedback-id: 167118m:167118agrif8a:167118sIpVwyBJ9R:SMTPCORP

On Aug 15, 2016, at 10:22 , studfed studfed <email@hidden> wrote:
>
> I am not sure if it is the right way to prevent table clipping.
> Are there any other options to accomplish this or this one is correct also
> ?

No, this is not really the right way. You should not be setting frames directly in an auto-layout-controlled environment.

The problem is likely that you don’t have suitable sizing options on the table columns and/or the table view, and/or you need to initiate table view re-layout via ‘setNeedsLayout’.

However, I’d suggest you start by first determining whether the problem is:

a. The contents of the column being clipped by the column.

b. The column being clipped by the table view.

c. The table view being clipped by the scroll view.

All are easily possible, and you’ll only find frustration if you go after the wrong problem.

_______________________________________________

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: 
 >Resizing NSScrollView/NSClipView to fit NSTableView width (From: studfed studfed <email@hidden>)

  • Prev by Date: Re: Class is implemented in both
  • Next by Date: Launch, connect, communicate
  • Previous by thread: Resizing NSScrollView/NSClipView to fit NSTableView width
  • Next by thread: Re: Resizing NSScrollView/NSClipView to fit NSTableView width
  • Index(es):
    • Date
    • Thread