• 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: Adding Constraints in Code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding Constraints in Code


  • Subject: Re: Adding Constraints in Code
  • From: Dave <email@hidden>
  • Date: Tue, 15 Sep 2015 11:46:29 +0100

> On 14 Sep 2015, at 22:51, Jonathan Hull <email@hidden> wrote:
>
> It looks like these are the constraints inside of the detailView (that hold it’s sub-parts together).  Doesn’t really tell us anything about the constraints holding the detailView itself in place...
>
> Thanks,
> Jon

No, not explicitly, I didn’t think I needed to since I can add LTWDetailYView’s to the exact same StackVIew and it works (e.g. LTWDetailYView stretches in X but LTWDetailXView doesn’t).

LTWDetailYView has a layout like this:

LTWDetailYView
	NSStackView
		Controls


Whereas LTWDetailXView is like this:

LTWDetailXView
	Controls

Both views are added to the exact same NSStackView, the driving code is common to both views, just the internal details change as per the NIB and the Class Implementation.

I’d be happy to try this out, but I’m not sure of the correct constraints in the first place, so when I try it I’m not sure if it should work or not!

Cheers
Dave
_______________________________________________

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: Adding Constraints in Code
      • From: Dave <email@hidden>
References: 
 >Adding Constraints in Code (From: Dave <email@hidden>)
 >Re: Adding Constraints in Code (From: Iain Holmes <email@hidden>)
 >Re: Adding Constraints in Code (From: Iain Holmes <email@hidden>)
 >Re: Adding Constraints in Code (From: Dave <email@hidden>)
 >Re: Adding Constraints in Code (From: Jonathan Hull <email@hidden>)
 >Re: Adding Constraints in Code (From: Dave <email@hidden>)
 >Re: Adding Constraints in Code (From: Jonathan Hull <email@hidden>)
 >Re: Adding Constraints in Code (From: Dave <email@hidden>)
 >Re: Adding Constraints in Code (From: Jonathan Hull <email@hidden>)

  • Prev by Date: Re: best way to implement a clickable grid?
  • Next by Date: Re: Adding Constraints in Code
  • Previous by thread: Re: Adding Constraints in Code
  • Next by thread: Re: Adding Constraints in Code
  • Index(es):
    • Date
    • Thread