Re: NSSplitView not Resizing Subviews if Delegate is used

2013-02-21 Thread Kevin Cathey
Michael, The issue here is that you are overriding one of several delegate methods that puts split view in "compatibility mode". Essentially some of the delegate methods on NSSplitView duplicate the functionality of what you can do with auto layout. In order to keep existing applications workin

Re: NSSplitView not Resizing Subviews if Delegate is used

2013-02-21 Thread Kevin Cathey
> Autolayout does not work with NSSplitView on 10.7. Auto layout does not work well with NSSplitView on 10.7. You can still have an NSSplitView in your UI and it will function, with the caveat that the min/max split positions will ignore what the constraints determine. So if you have a subview t

Re: NSSplitView not Resizing Subviews if Delegate is used

2013-02-19 Thread Kyle Sluder
On Tue, Feb 19, 2013, at 03:31 PM, Chuck Soper wrote: > Autolayout works well with NSSplitView. There may be differences between > 10.7 or 10.8 but I can't remember. Does your app require Mac OS X 10.8 or > 10.7? Autolayout does not work with NSSplitView on 10.7. --Kyle Sluder ___

Re: NSSplitView not Resizing Subviews if Delegate is used

2013-02-19 Thread Chuck Soper
Autolayout works well with NSSplitView. There may be differences between 10.7 or 10.8 but I can't remember. Does your app require Mac OS X 10.8 or 10.7? The way I use autolayout with NSSplitView is to add constraints to the subviews in IB. If you need to add or remove those constraints, you can co

Re: NSSplitView not Resizing Subviews if Delegate is used

2013-02-19 Thread Michael Starke
I was thinking about Auto-Layout and indeed it is the source of the Problem. Even if the delgate just had - (BOOL)splitView:(NSSplitView *)splitView shouldAdjustSizeOfSubview:(NSView *)view { return YES; } the resizing did not work anymore. The proposedMinimumPosition was just the input

Re: NSSplitView not Resizing Subviews if Delegate is used

2013-02-19 Thread Chuck Soper
Are you using Auto Layout in InterfaceBuilder? (See the Use Auto Layout checkbox in the File inspector for each nib.) If so, implementing splitView:constrainMinCoordinate:ofSubviewAt: may conflict with auto layout. Also, what is your purposed minimum? Where is it defined? Chuck On 2/19/13 7:53

NSSplitView not Resizing Subviews if Delegate is used

2013-02-19 Thread Michael Starke
Hello here, Yesterday a ran into a strange problem that I could not get my head around. Simple setup created in InterfaceBuilder: A window with a horizontal NSSplitview with two subviews. If I run this without setting the delegate of the split view the two subviews get rescaled as expected. Wh