Re: NSOutlineView doesn't collapse item
Re: NSOutlineView doesn't collapse item
- Subject: Re: NSOutlineView doesn't collapse item
- From: Peng Gu <email@hidden>
- Date: Wed, 19 Jun 2013 12:27:13 +0800
I've figured it out.
Seems the item is collapsable only when the delegate method *-
(BOOL)outlineView:(NSOutlineView *)outlineView
shouldShowOutlineCellForItem:(id)item* returns YES for that item.
Otherwise, you can only expand the item.
Thanks,
On Wed, Jun 19, 2013 at 11:20 AM, Jens Alfke <email@hidden> wrote:
>
> On Jun 18, 2013, at 7:16 PM, Peng Gu <email@hidden> wrote:
>
> > [[self.outlineView animator] collapseItem:item];
>
> I’ve never tried using the animator proxy to do this; I don’t think it’s
> necessary (the expand/collapse will be animated anyway.) Have you tried
> calling the view directly?
>
> —Jens
>
>
_______________________________________________
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