Re: Auto Layout with NSSplitView, NSScrollView

2014-01-23 Thread SevenBits
On Thu, Jan 9, 2014 at 12:27 PM, Andy Lee wrote: > That's a great thread, thanks! > > BTW Apple removed the splitview-without-NSSplitView sample code that's > mentioned in the thread. For anyone still interested, someone named Darcy > Liu seems to have been archiving all of Apple's sample code:

Re: Auto Layout with NSSplitView, NSScrollView

2014-01-09 Thread Andy Lee
On Jan 9, 2014, at 12:48 PM, Kyle Sluder wrote: > Nope. Please see the 10.8 AppKit Release Notes, which enumerate all the > delegate methods which will kick you out of Auto Layout mode: > >> splitView:constrainMinCoordinate:ofSubviewAt: >> splitView:constrainMaxCoordinate:ofSubviewAt: >> splitVie

Re: Auto Layout with NSSplitView, NSScrollView

2014-01-09 Thread Andy Lee
On Jan 9, 2014, at 12:48 PM, Kyle Sluder wrote: > On Thu, Jan 9, 2014, at 07:51 AM, Andy Lee wrote: >> As far as I know (see disclaimers), there's no reason you can't implement >> split view delegate methods just because you're using Auto Layout, as >> long as you aren't calling setFrame:. > > No

Re: Auto Layout with NSSplitView, NSScrollView

2014-01-09 Thread Ken Ferry
On Thu, Jan 9, 2014 at 9:48 AM, Kyle Sluder wrote: > To achieve this effect, add a mandatory greater-than-or-equal-to width > constraint to the subview you want to be collapsible, and implement > -splitView:canCollapseSubview: to return YES for that subview. > Yeah - not too much to it! BUT, lo

Re: Auto Layout with NSSplitView, NSScrollView

2014-01-09 Thread Andy Lee
On Jan 9, 2014, at 12:55 PM, SevenBits wrote: > On Thu, Jan 9, 2014 at 12:27 PM, Andy Lee wrote: >> That's a great thread, thanks! >> >> BTW Apple removed the splitview-without-NSSplitView sample code that's >> mentioned in the thread. For anyone still interested, someone named Darcy >> Liu s

Re: Auto Layout with NSSplitView, NSScrollView

2014-01-09 Thread Kyle Sluder
On Thu, Jan 9, 2014, at 07:51 AM, Andy Lee wrote: > As far as I know (see disclaimers), there's no reason you can't implement > split view delegate methods just because you're using Auto Layout, as > long as you aren't calling setFrame:. Nope. Please see the 10.8 AppKit Release Notes, which enumer

Re: Auto Layout with NSSplitView, NSScrollView

2014-01-09 Thread Andy Lee
That's a great thread, thanks! BTW Apple removed the splitview-without-NSSplitView sample code that's mentioned in the thread. For anyone still interested, someone named Darcy Liu seems to have been archiving all of Apple's sample code: The splitv

Fwd: Re: Auto Layout with NSSplitView, NSScrollView

2014-01-09 Thread Michael Starke
If I recall correctly, if you did implement ANY delegate method using 10.7 the split view did fall back to a "non-autolayout" aware mode. At least that was my experince. It did change with 10.8. But take this with a lot of caution. My memory tends to mess up those things :) Ah. There was somethin

Re: Auto Layout with NSSplitView, NSScrollView

2014-01-09 Thread Andy Lee
On Jan 6, 2014, at 11:54 AM, Fritz Anderson wrote: > On 4 Jan 2014, at 1:38 PM, thatsanicehatyouh...@me.com wrote: > > I like your user name. > >> I have a couple of questions about using auto layout (AL) with NSSplitView >> and NSScrollView. I have watched the (excellent) WWDC videos from 2012

Re: Auto Layout with NSSplitView, NSScrollView

2014-01-06 Thread Fritz Anderson
On 4 Jan 2014, at 1:38 PM, thatsanicehatyouh...@me.com wrote: I like your user name. > I have a couple of questions about using auto layout (AL) with NSSplitView > and NSScrollView. I have watched the (excellent) WWDC videos from 2012, but > am having problems. > > I'm trying to implement an N

Auto Layout with NSSplitView, NSScrollView

2014-01-04 Thread thatsanicehatyouhave
Hi, I have a couple of questions about using auto layout (AL) with NSSplitView and NSScrollView. I have watched the (excellent) WWDC videos from 2012, but am having problems. I'm trying to implement an NSSplitView (not a custom view that's similar to NSSplitView) and want to retain the behavio