I have multilevel hierarchy in my outlineview. I am able to get the selected item and it\'s parent item using below code.
func outlineViewSelectionDidChange