addNSWindowDelegate static method

NSWindowDelegateHandle addNSWindowDelegate(
  1. NSWindowDelegate delegate
)

Adds a NSWindowDelegate which can be used to respond to events, such as window resizing, moving, exposing, and minimizing.

Returns a NSWindowDelegateHandle which can be used to remove the delegate from the delegate's NSWindowDelegateHandler.

Implementation

static NSWindowDelegateHandle addNSWindowDelegate(NSWindowDelegate delegate) {
  return _nsWindowDelegateHandler.addDelegate(delegate);
}