beginSheet method

void beginSheet(
  1. NSWindow sheetWindow, {
  2. ObjCBlock<Void Function(NSInteger)>? completionHandler,
})

beginSheet:completionHandler:

Implementation

void beginSheet(
  NSWindow sheetWindow, {
  objc.ObjCBlock<ffi.Void Function(ffi.Long)>? completionHandler,
}) {
  objc.checkOsVersionInternal(
    'NSWindow.beginSheet:completionHandler:',
    iOS: (true, null),
    macOS: (false, (10, 9, 0)),
  );
  _objc_msgSend_o762yo(
    this.ref.pointer,
    _sel_beginSheet_completionHandler_,
    sheetWindow.ref.pointer,
    completionHandler?.ref.pointer ?? ffi.nullptr,
  );
}