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 protected]> wrote:

>
> On Jun 18, 2013, at 7:16 PM, Peng Gu <[email protected]> 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 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