Re: NSSplitView similar to Xcode's editor/debug area split view
Re: NSSplitView similar to Xcode's editor/debug area split view
- Subject: Re: NSSplitView similar to Xcode's editor/debug area split view
- From: Miron Iancu <email@hidden>
- Date: Thu, 27 Jun 2013 18:38:03 +0300
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 <email@hidden> 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 (email@hidden)
>
> 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:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden