Updates the window.
- macOS 10.0+
NSWindow implementation of this method does nothing more than post an
NSWindow notification to the default notification center. A subclass can override this method to perform specialized operations, but it should send an update message to
super just before returning. For example, the
NSMenu class implements this method to disable and enable menu commands.
NSWindow object is automatically sent an
update message on every pass through the event loop and before it’s displayed onscreen. You can manually cause an
update message to be sent to all visible
NSWindow objects through the