objective c - Selecting text programatically in menu view -
objective c - Selecting text programatically in menu view -
i write "agent" cocoa app have textfield in status icon's menu, looks this:
and in couple of places select contents programatically (e.g. in -(bool)becomefirstresponder of nstextfield subclass)
and doesn't work. certainly has fact it's in menu, not in window. how prepare that?
thanks a lot in advance.
why don't utilize window instead? menus implemented windows under hood: can same thing, position , style window appropriately.
edit: reply largely rewritten
objective-c cocoa nstextfield
Comments
Post a Comment