• 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 12:06:59 +0100

Hi,

I changed the Background Color of the Flipped Clip View and it seems to be constrained to the Scroll View anyway, e.g. I set:

pValidationIssueScrollView = Red.
pValidationListStackView = Blue.
pValidationClipView = Green.

I then add one item to the StackView, now when I resize the Window to make it wider, the pValidationListStackView and pValidationClipView resize in X to match the new ScrollView Size, but the LTWDetailXView doesn’t.

The Background color of the  LTWDetailXView is yellow.

This is so hard to describe, I’ve sent you a screen dump offline.

I really appreciate your help on this.

All the Best
Dave



> On 15 Sep 2015, at 11:46, Dave <email@hidden> wrote:
>
>> 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


_______________________________________________

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: 
 >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>)
 >Re: Adding Constraints in Code (From: Dave <email@hidden>)

  • Prev by Date: Re: Adding Constraints in Code
  • Next by Date: Re: Identifying a specific Mac model
  • Previous by thread: Re: Adding Constraints in Code
  • Next by thread: Re: Adding Constraints in Code
  • Index(es):
    • Date
    • Thread