malcommac / DMSplitView

New NSSplitView class with multiple subviews resize behaviors and animated transitions
116 stars 24 forks source link

Value of newState from splitView:subview:stateChanged: is always 0 #4

Closed brendand closed 11 years ago

brendand commented 11 years ago

When expanding or collapsing the sub views, the value for newState in the delegate method splitView:subview:stateChanged: is always 0 (DMSplitViewStateCollapsed). When expanding, it should be 1 (DMSplitViewStateExpanded).

brendand commented 11 years ago

The problem is in the following code:

        if (isExpanding)
            [self.eventsDelegate splitView:self
                                   subview:dividerIndex
                              stateChanged:DMSplitViewStateCollapsed];

the stateChanged parameter should be sent DMSplitViewStateExpanded.

malcommac commented 11 years ago

thanks.