Search code examples
cocoarownstableviewsticky

Have an NSTableView row always stay in the same place


Im trying to make a trash can system in my app. I have a NSTableView and a trash can row. I want to have the row "stick" to the bottom of the visible table view so it can always be seen. Is it possible to do this and if not is there a better approach to doing this?

Thanks for any help


Solution

  • Sit another utterly separate UIView, on top the views that contain the table.

    Simply fake it up to make it look like a row from the table.

    As you say, "Thanks that sounds like it will work as long [tableview deselectRow:[tableview selectedRow] works so it appears that the fake row is really in the view." -- that is precisely what you do.