Permalink
Browse files

Set correct disclosure triangle when state is set via property

  • Loading branch information...
1 parent 8813190 commit fa42eef13c6bb662c8e2d2ab54ecbb31f82b4623 @odrobnik committed Oct 11, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 DMInspectorPalette/DMPaletteSectionView.m
View
6 DMInspectorPalette/DMPaletteSectionView.m
@@ -139,4 +139,10 @@ -(void)disclosureClicked:(id)sender {
state = [container toggleStateFor:self];
}
+- (void)setState:(DMPaletteState)_state
+{
+ state = _state;
+ disclosureTriangle.state = (state == DMPaletteStateExpanded ? NSOnState : NSOffState);
+}
+
@end

0 comments on commit fa42eef

Please sign in to comment.