I have a NSOutlineView, and clicking on a row will expand/collapse the item
if it's expandable.

    if ([self.outlineView isItemExpanded:item]) {
        NSLog("Will collapse item : %@", item);
        [[self.outlineView animator] collapseItem:item];
    }
    else {
        [[self.outlineView animator] expandItem:item];
    }

Expanding the item works as expected, however collapsing the item is not
working. I did get the log before executing collapseItem:, and the item is
correct. The delegate method - (BOOL)outlineView:(NSOutlineView
*)outlineView shouldCollapseItem:(id)item was not called too.

Have been on this problem for hours. Any ideas what causes this?\


-

Peng
_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to