NSMenuItem : acceptsFirstMouse(forEvent: NSEvent)

2019-09-24 Thread Mark Wade via Cocoa-dev
Hi All, I’m at a loss here. I’ve created a statusbar item, using Swift 5, whose first menu item is a textwithstepper NSDatePicker which I created by setting the menu item’s view. This all works fine when run from within XCode. Running the app directly still works, however I can’t select the

Re: NSMenuItem : acceptsFirstMouse(forEvent: NSEvent)

2019-09-25 Thread Mark Wade via Cocoa-dev
Had to override acceptsFirstMouse in NSDatePicker not NSMenuItem. Works, still doesn’t highlight the fields when selected but works. Guess I’ll figure it out. Would like to know what is different when run directly and when run from Xcode though > On Sep 24, 2019, at 1:23 PM, Mark Wade