runModalForWindow method

DartNSInteger runModalForWindow(
  1. NSWindow window, {
  2. required NSWindow relativeToWindow,
})

runModalForWindow:relativeToWindow:

Implementation

DartNSInteger runModalForWindow(
  NSWindow window, {
  required NSWindow relativeToWindow,
}) {
  objc.checkOsVersionInternal(
    'NSApplication.runModalForWindow:relativeToWindow:',
    iOS: (true, null),
    macOS: (false, (10, 0, 0)),
  );
  return _objc_msgSend_gayyhh(
    this.ref.pointer,
    _sel_runModalForWindow_relativeToWindow_,
    window.ref.pointer,
    relativeToWindow.ref.pointer,
  );
}