NSOutlineView doesn't collapse item
NSOutlineView doesn't collapse item
- Subject: NSOutlineView doesn't collapse item
- From: Peng Gu <email@hidden>
- Date: Wed, 19 Jun 2013 10:16:01 +0800
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@hidden)
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:
This email sent to email@hidden