Custom field editor for NSTextFieldCell in an NSTableView

前端 未结 5 1539
情歌与酒
情歌与酒 2021-02-06 16:39

I have a custom NSTableView subclass filled with several custom NSTextFieldCell subclasses. I would like to be able to change the edited cell by using

5条回答
  •  深忆病人
    2021-02-06 17:27

    The easiest way to accomplish what you need is to implement control:textView:doCommandBySelector: in the table view's delegate.

    See also my answer to a similar question here: Arrow keys with NSTableView

提交回复
热议问题