I'm trying to figure out a good way to code a download link or button in a table cell.
In Cocoa there's NSLinkAttributeName that could probably work, but I don't think we have that option in Cappuccino.
Maybe I could just make the entire cell clickable anyway.
I considered just making my single 'status' cell into a CPButton if and only if the row it was in had a downloadable item. I thought maybe I could use
-tableView:viewForTableColumn:row:
by responding with nil for the vast majority of cells, except for the few that had the downloadable content, and returning a CPButton for those only.
However, returning nil appears not to work.
It I return a CPTextField in all the other cases, then I lose the standard formatting that table cells have that is set on every other cell in my application, which is a bit annoying... although maybe there's a way to pick up the 'default cell view' somehow.
Anyway, mostly curious as to what people have done to code something like this.
Naturally I'd like something that's as simple as possible. I have browsed the tests and demos and nothing has jumped out at me (though it's entirely possible that I've missed something!).