Joshua
Joshua

Reputation: 15510

Retrieving the selected object in an NSOutlineView

I am looking to retrieve the selected object in an NSOutlineView so I can see if the selected object has any children. How would I do this?

Upvotes: 1

Views: 591

Answers (1)

NSResponder
NSResponder

Reputation: 16861

NSOutlineView inherits the -selectedRow method from NSTableView. I suspect though, that what you really want is the current selection from whatever NSController is acting as your outline view's data source.

Upvotes: 4

Related Questions