Skip to content

Commit

Permalink
Set correct disclosure triangle when state is set via property
Browse files Browse the repository at this point in the history
  • Loading branch information
odrobnik committed Oct 11, 2012
1 parent 8813190 commit fa42eef
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions DMInspectorPalette/DMPaletteSectionView.m
Expand Up @@ -139,4 +139,10 @@ -(void)disclosureClicked:(id)sender {
state = [container toggleStateFor:self]; state = [container toggleStateFor:self];
} }


- (void)setState:(DMPaletteState)_state
{
state = _state;
disclosureTriangle.state = (state == DMPaletteStateExpanded ? NSOnState : NSOffState);
}

@end @end

0 comments on commit fa42eef

Please sign in to comment.