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
> On 14 Sep 2015, at 22:51, Jonathan Hull 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,
Trying to remember what I had to do to get this to work in a project a couple
of years ago. Have you tried adding a constraint equaling the width of the
scrollView and the clipView?
Thanks,
Jon
> On Sep 14, 2015, at 11:11 AM, Dave wrote:
>
>
>> On 14 Sep 2015, at 18:50, Jonathan Hull wrot
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
> On Sep 14, 2015, at 12:21 PM, Dave wrote:
>
> These are the constraints on the
These are the constraints on the detail view just after it has been added to
the StackView:
myDetailView.constraints: (
"”,
"”,
"”,
"”,
"”,
"”,
""
)
Which look ok me me?
Cheers
Dave
> On 14 Sep 2015, at 19:18, Jonathan Hull wrote:
>
> Oh yeah, it does on iOS
Hi,
[self.pValidationIssueScrollView setBackgroundColor:[NSColor redColor]];
self.pValidationListStackView.wantsLayer = YES;
self.pValidationListStackView.layer.backgroundColor = [[NSColor blueColor]
CGColor];
Did the trick!
When I run it, the StackView grows with the ScrollView, e.g. it’s Blue
Oh yeah, it does on iOS, but not OS X. Sorry about that.
On OS X, you need to layer back it and set the layer’s background color.
stackview.wantsLayer = YES
stackview.layer.backgroundColor = [NSColor blueColor]
(Note: The above was written in mail, so it may take a little tweaking to work)
Tha
> On 14 Sep 2015, at 18:50, Jonathan Hull wrote:
>
> You shouldn’t have to add any constraints to the direct children of a
> StackView (and in fact, you will most likely get an error if you try), since
> the StackView will make its own constraints and manages them for you.
>
> My guess is tha
You shouldn’t have to add any constraints to the direct children of a StackView
(and in fact, you will most likely get an error if you try), since the
StackView will make its own constraints and manages them for you.
My guess is that the StackView is not resizing with the ScrollView. You can
t
I’ve looked at that and have in fact based some of my code on it. Unfortunately
InfoBarStackView isn’t very “real-world” and I can’t use it as is. This code
works fine, I just need to know how to make a view added to a
NSScrollView/StackVIew Combo stretch to the Right of the ScrollView.
The oth
Without digging into your code, it sounds like you've got some wrong
assumptions of how things work and that you're doing way too much. Try taking
Apple's example and iteratively add your own pieces:
https://developer.apple.com/library/mac/samplecode/InfoBarStackView/Introduction/Intro.html#//ap
Also, it displays the view if I comment out the constraints adding code, so I’m
pretty sure detail view is setup ok.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact
> On 14 Sep 2015, at 17:39, Thomas Wetmore wrote:
>
>
>> On Sep 14, 2015, at 11:54 AM, Dave wrote:
>>
>> I tred this:
>>
>> myDetailView = [myDetailViewController getPrimaryView];
>> [self.pValidationListStackView addView:myDetailView
>> inGravity:NSStackViewGravityTop];
>>
>>
>
> The NSLayoutFormatAlignAllLeft says that all the views mentioned in the
> format string should be aligned along their left edges. Which isn’t possible
> if you want them to be laid out horizontally.
> You should just use 0 for options.
>
> However: StackView is the parent of DetailView so y
>
> In fact, with NSStackView you should just be able to set the content hugging
> priority and it’ll just work
>
> myDetailView = [myDetailViewController getPrimaryView];
> [self.pValidationListStackView addView:myDetailView
> inGravity:NSStackViewGravityTop]; // NOTE: Should this not be Grav
> On 14 Sep 2015, at 10:35 am, Dave wrote:
>
> Hi All,
>
> I’m trying to add Constraints to a View in order to have it stretch to the
> left and right edges of the superview. This is slight complicated by it being
> in a ScrollView/Stack View Combo as so:
>
>
> NSScrollView
> On 14 Sep 2015, at 11:58 am, Iain Holmes wrote:
>
>>
>> On 14 Sep 2015, at 10:35 am, Dave wrote:
>>
>> Hi All,
>>
>> I’m trying to add Constraints to a View in order to have it stretch to the
>> left and right edges of the superview. This is slight complicated by it
>> being in a ScrollV
This looks like you are trying to push both the stack view and the detail view
to the left and to the right at the same time, inconsistent with the overall
horizontal constraint.
Isn’t the error message indicating that there is something wrong with the
provided options? I’d experiment with thos
Hi All,
I’m trying to add Constraints to a View in order to have it stretch to the left
and right edges of the superview. This is slight complicated by it being in a
ScrollView/Stack View Combo as so:
NSScrollViewSetup in NIB
NSFlippedClipVie
19 matches
Mail list logo