My Cocoa App is made by a NSStatusBar with a NSTextField inside and a Main Window.
Please, look the screenshots to get the idea:
I have two problems:
When I open Menubar I am unable to got the focus to SearchField (like Spotlight) and I am unable to select content with something like [textField selectText:self]
Worsts: if my MainWindow is on front it works without problems. If my MainWindow is not on front but is visible I am unable to edit TextField. It is selectable with mouse but not editable. Why this ?
I tried all the hacks found but I was unable to solve the issue.
I have also had this problem so I ended up completely recreating NSMenu
using a NSWindow
. I named it JGMenuWindow
and you can find the open source code on GitHub here.
Here's an example of what it can do:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With