Respond to mouse events in text field in view-based table view

后端 未结 6 1327
甜味超标
甜味超标 2020-12-02 16:11

I have text fields inside a custom view inside an NSOutlineView. Editing one of these cells requires a single click, a pause, and another single click. The firs

6条回答
  •  甜味超标
    2020-12-02 16:32

    Had the same problem. After much struggle, it magically worked when I selected None as against the default Regular (other option is Source List) for the Highlight option of the table view in IB!

    Another option is the solution at https://stackoverflow.com/a/13579469/804616, which appears to be more specific but a little hacky compared to this.

提交回复
热议问题