windowsMenu property

NSMenu? get windowsMenu

windowsMenu

Implementation

NSMenu? get windowsMenu {
  objc.checkOsVersionInternal('NSApplication.windowsMenu', iOS: (true, null));
  final _ret = _objc_msgSend_151sglz(this.ref.pointer, _sel_windowsMenu);
  return _ret.address == 0
      ? null
      : NSMenu.castFromPointer(_ret, retain: true, release: true);
}
set windowsMenu (NSMenu? value)

setWindowsMenu:

Implementation

set windowsMenu(NSMenu? value) {
  objc.checkOsVersionInternal(
    'NSApplication.setWindowsMenu:',
    iOS: (true, null),
  );
  _objc_msgSend_xtuoz7(
    this.ref.pointer,
    _sel_setWindowsMenu_,
    value?.ref.pointer ?? ffi.nullptr,
  );
}