Disclosure Indicator or Detail Disclosure

I’ll post this just to show how wet I am behind the ears… When setting up a bunch of TableViews for lists and detail views, I came to need both the Disclosure Indicator and the Detail Disclosure. I understand when one is used vs. the other, but wasn’t familiar with working with them in code.

The long and short of it is, the Disclosure Indicator is pure eye candy. There is no callback, no way to create an IBAction for it (even if you press the control key really hard…) nothing. You just handle the row taps like any other:

tableView: didSelectRowAtIndexPath:

Detail Disclosure gets a shiny action all it’s own, built in to every NSTableViewController as part of the delegate:

tableView: accessoryButtonTappedForRowWithIndexPath:

I guess the 3d look of the Detail Disclosure vs. the flat Disclosure Indicator is a clue, but sadly it was lost on me for too long as I was working through so much else.

Comments are closed.