alexrozanski / PXSourceList

Source List control for the Mac
Other
638 stars 76 forks source link

Programmatically expand a group item #15

Closed locomote closed 13 years ago

locomote commented 13 years ago

Hi there, I would like to know if there's an easy way to expand a group item programmatically? I can get around it by modifying the isGroupAlwaysExpanded and reloading the list but this is really hacky and I would like to keep the disclosure triangle if possible.

Cheers!

alexrozanski commented 13 years ago

You can call -expandItem: or -expandItem:expandChildren:, passing in the item you want to expand (these are methods declared on NSOutlineView, which PXListView subclasses).

locomote commented 13 years ago

Thanks for that :)