swift - Refreshing of Menu Bar View when NSMenu is opened -


i developing app, has custom view in menu bar. menu bar custom nsview redrawn every second. when open nsmenu of view, view freezes , no longer redraws itself. using

self.graph.needsdisplay = true 

to trigger redraw.

is possible refresh nsview in menu bar when nsmenu opened?

turns out duplicate of this topic

the solution add timer runloop:

runloop.main.add(timer, formode: .commonmodes) 

Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

android - ConstraintLayout: Realign baseline constraint in case if dependent view visibility was set to GONE -