NSScrollView in NSTabView autolayout problem

2013-04-17 Thread kwic...@wichry.net
Hi I have an NSTabView with multiple tabs, each containing an NSScrollView. In the scrollviews I dynamically place custom views which are sized using autolayout and constraints. Now if I add my custom views to a scrollview in tab1 and resize the window with this tab active everything works fine

Re: NSScrollView in NSTabView autolayout problem

2013-04-18 Thread Chuck Soper
This message may be relevant for your issue: http://prod.lists.apple.com/archives/cocoa-dev/2013/Feb/msg00426.html Personally, I don't use auto layout in NSScrollView. I think that NSScrollView doesn't support it, but it appears that many people have gotten it to work. Chuck P.S. It looks like yo

Re: NSScrollView in NSTabView autolayout problem

2013-04-19 Thread Krzysztof Wicher
Thank you Chuck for pointing me to the answer I will try that. I know that NSScrollView is not build with Autolayout in mind but I hoped using it would save several boring layout managment problems arising in my design. Also, I did send the message last week but as it was my first to this mai

Re: NSScrollView in NSTabView autolayout problem

2013-04-22 Thread kwic...@wichry.net
Hello My problems persist. So the NSScrolView as such work perfectly if they are in the active tab view. However if another tabview is active while window resizing the scrollviews on the inactive tabs get crazy and report NSClipVIew constraint with width 0. Best K On 19 Apr 2013, at 08:37, Krzys

Re: NSScrollView in NSTabView autolayout problem

2013-04-25 Thread Chuck Soper
I ran into a very similar problem. Recently, I put my view hierarchy into an NSTabView. When it's in the inactive tab, I get lots of "Unable to simultaneously satisfy constraints" errors. When the view hierarchy is in the active tab, there are no errors. I use auto layout in most of my views accept

Re: NSScrollView in NSTabView autolayout problem

2013-04-26 Thread Krzysztof Wicher
I posted similar question to Stackoverflow and it seems that the problem might be system dependent. I am on OSX 10.7.5 and XCode 4.6 and the person who tested my minimal example on XCode 4.6.1 and OS X 10.8.3 did not have any problems with autolayaout. Best K On 26/04/2013 00:15, Chuck Soper