How to deal with first responder and a NSPopover

后端 未结 1 1525
死守一世寂寞
死守一世寂寞 2021-02-08 22:38

I’m trying to replicate the behaviour of the search field in iTunes, for looking up stock symbols and names. Specifically, as you start typing in the search field a popover app

相关标签:
1条回答
  • 2021-02-08 23:24

    In the meantime I found an easy fix. Subclass your text view and implement - (BOOL)canBecomeKeyView. Always return NO there. It will be called only once when the popover is shown. You can work with the text view any time still.

    0 讨论(0)
提交回复
热议问题