Custom field editor for NSTextFieldCell in an NSTableView

前端 未结 5 1478
情歌与酒
情歌与酒 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:26

    These should be overridden in keyDown:(NSEvent *)event method of your subclassed NSTextFieldCell object. You check the pressed key (one of the arrows) and otherwise call up to super.

提交回复
热议问题