Re: Auto Layout Problems

2015-09-07 Thread Dave
Hi, After much grief I finally managed to get a Scroll View, a Stack View and Auto Layout to live together in some sort of harmony and I managed to 99% of it in XCode 6.4 and Mac OS 10.10. The secret to making it work is to ensure that: 1. You use Embed in Scroll View to add the Stack

Re: Auto Layout Problems

2015-09-07 Thread Daniel Phillips
Hi Dave, Would love to see that sample project of yours. Thanks Daniel Sent from my iPhone > On 7 Sep 2015, at 18:13, Dave wrote: > > Hi, > > After much grief I finally managed to get a Scroll View, a Stack View and > Auto Layout to live together in some sort of

Re: Auto Layout Problems

2015-09-05 Thread Dave
Hi, Ok, when I initially asked for some help or if there were any additional documentation I was pointed to this: http://natashatherobot.com/ios-autolayout-scrollview/ Which applies to iOS *only*. I was then told: Yes, there's a pretty huge difference: UIScrollView doesn't have a

Re: Auto Layout Problems

2015-09-05 Thread Roland King
This reminds me of the discussion we had about putting stack views in scrollviews back in January http://lists.apple.com/archives/cocoa-dev/2015/Jan/msg00092.html it certainly took a bit of messing about but it wasn’t that hard

Re: Auto Layout Problems

2015-09-05 Thread Dave
Meant to add, I get this warning in the NIB file: StackView Expected: y=0, height=476 Actual: y=224, height=461 I’m not sure if this is the problem? If so not sure how to fix it, it won’t let me alter the size of the StackView Cheers Dave ___

Re: Auto Layout Problems

2015-09-05 Thread Dave
Thank you so much for this Roland, > On 5 Sep 2015, at 14:11, Roland King wrote: > > This reminds me of the discussion we had about putting stack views in > scrollviews back in January > > http://lists.apple.com/archives/cocoa-dev/2015/Jan/msg00092.html > > it certainly took

Re: Auto Layout Problems

2015-09-05 Thread Dave
Hi, I’ve been experimenting and given that I have this in a NIB file: Window Initially - Width=846, Height=594 BaseView (Matches Window) NSScrollView

Re: Auto Layout Problems

2015-09-04 Thread Dave
Hi, I’ve watched the videos at: https://developer.apple.com/videos/wwdc/2015/?id=218 and https://developer.apple.com/videos/wwdc/2015/?id=219 Which I found generally very helpful except that the majority of it was for iOS not Mac OS X, and, there was nothing on how to make it work with an

Re: Auto Layout Problems

2015-09-04 Thread Dave
Hi, > It seems your thread keeps changing subjects so it's been difficult to follow > your troubles back to something at the start, or maybe something's gotten > lost. What I’d dearly love to know right now is how to setup the Constraints for a Scroll View and Clip View etc. in XCode/IB for

Re: Auto Layout Problems

2015-09-04 Thread Gary L. Wade
It seems your thread keeps changing subjects so it's been difficult to follow your troubles back to something at the start, or maybe something's gotten lost. If you have a view in a XIB, you can usually choose to embed it in a scroll view (there's a menu item for that) which should take care of

Re: Auto Layout Problems

2015-09-04 Thread Luther Baker
I may not be following the entire thread very well - but as you likely know, with autolayout, the scrollview's content size is literally determined by its contents. It is generally simple to bind the scrollview edges to the parent you mention but I think your next step is to properly size the

Re: Auto Layout Problems

2015-09-04 Thread Gary L. Wade
As I mentioned, start with your stack view in your window, embed it in a scroll view using the menu command to do this, and add your constraints on the scroll view to position it within your window. It's easier and less error-prone if you do it this way. If you'd rather do it in code, do a

Re: Auto Layout Problems

2015-09-03 Thread Gary L. Wade
Some of it does, but it still helps if you need to support earlier. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ > On Sep 3, 2015, at 11:19 AM, Dave wrote: > > Hi, > >> Check out this year's WWDC videos on auto-layout, the part 1/2 ones. I >> believe

Re: Auto Layout Problems

2015-09-03 Thread Dave
Hi, > Check out this year's WWDC videos on auto-layout, the part 1/2 ones. I > believe (just now seeing this post) they will answer what you want and help > you know that you are not alone in your pain. Thanks for this, I’m watching them now. In case anyone wants to watch them, they are at:

Re: Auto Layout Problems

2015-09-03 Thread Dave
> On 27 Aug 2015, at 20:09, Glenn L. Austin wrote: > > I've had great success with auto-layout, even inside scrollviews. > > All it takes is a bit of time to realise that (1) auto-layout isn't like your > current layout code; and (2) auto-layout has its own set of rules,

Re: Auto Layout Problems

2015-09-03 Thread Gary L. Wade
Check out this year's WWDC videos on autolayout, the part 1/2 ones. I believe (just now seeing this post) they will answer what you want and help you know that you are not alone in your pain. -- Gary L. Wade (Sent from my iPhone) http://www.garywade.com/ > On Sep 3, 2015, at 10:23 AM, Dave