Subclass NSOutlineView and suppress the animation:
-(void) expandItem:(id)item expandChildren:(BOOL)expandChildren
{
[NSAnimationContext beginGrouping];
[[NSAnimationContext currentContext] setDuration:0.0];
[super expandItem:item expandChildren:expandChildren];
[NSAnimationContext endGrouping];
}
Other methods:
– expandItem:
– expandItem:expandChildren:
– collapseItem:
– collapseItem:collapseChildren:
source
share