• 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: Why are these layout constraints being ignored?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why are these layout constraints being ignored?


  • Subject: Re: Why are these layout constraints being ignored?
  • From: Rob Nikander <email@hidden>
  • Date: Wed, 03 Jul 2013 16:12:41 -0400

Thanks, it's good to know I'm not the only one. I've abandoned constraints
for now and am using the old way.

Rob


On Tue, Jul 2, 2013 at 12:43 PM, Kyle Sluder <email@hidden> wrote:

> On Jun 25, 2013, at 6:10 AM, Rob Nikander <email@hidden> wrote:
>
> >
> > I create 4 constraints with the desire to pin the NSOutlineView to the
> > edges of it's superview (the NSWindow's contentView). It works, until I
> > expand/collapse items in the outline view. Then the constraints are
> ignored
> > and the outline shrinks.  Why are they ignored? What is it in the outline
> > view that is taking priority? It's intrinsicContentSize is (-1,-1) which
> I
> > thought meant it could be stretched out to satisfy other constraints.
>
> Long story short, NSOutlineView (and NSTableView) will do one of two
> behaviors when tiling:
>
> 1. Inside an NSClipView (which is the case when it is the document view of
> an NSScrollView), it will fill its clip view or its content, whichever is
> bigger.
>
> 2. Outside of an NSClipView, it will resize to hug its content as small as
> possible.
>
> Obviously, neither of these is compatible with auto layout. There are no
> override hooks to customize this behavior. The only thing I have found that
> works reliably is to put the table view inside an NSClipView, and resize
> that appropriately.
>
> Please file radars on the inflexibility of NSTableView. I know I have.
>
> --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


References: 
 >Why are these layout constraints being ignored? (From: Rob Nikander <email@hidden>)
 >Re: Why are these layout constraints being ignored? (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Carbon removal
  • Next by Date: Re: NSSplitView similar to Xcode's editor/debug area split view
  • Previous by thread: Re: Why are these layout constraints being ignored?
  • Next by thread: Re: NSSplitView similar to Xcode's editor/debug area split view
  • Index(es):
    • Date
    • Thread