Hi. 1. Use Split view's setPosition:ofDividerAtIndex. Use delegate to control the constraints.
2. Using above. If you need custom easing of movement it's a bit more complicated. Regards, M Sent from my iPhone On 27.06.2013, at 03:30, Chuck Soper <chu...@veladg.com> wrote: > I'm trying to implement an NSSplitView similar to Xcode's editor/debug > area split view. I'm implementing a split view with two views (one above > the other). > > Like Xcode, I need my 'Debug Area' view to: > a) Have a minimum height. > b) Show or hide view with animation by clicking a button (or pressing a > key). > c) Show or hide view by dragging the divider bar. > I know a few ways to do this. I'm trying to find the best and easiest way > to implement this. Also, my app requires 10.8. > > My main questions are: > 1. Should I use NSSplitViewDelegate methods to constrain the height, or > should I add/remove a height constraint (auto layout)? > > > 2. How should I animate the showing or hiding of the 'debug area' view? > > > Thanks, > Chuck > > > _______________________________________________ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or moderator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/miancu%40alauda.ro > > This email sent to mia...@alauda.ro _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com