openDocumentWithContentsOfURL$1 method

ObjCObjectBase? openDocumentWithContentsOfURL$1(
  1. NSURL url, {
  2. required bool display,
})

openDocumentWithContentsOfURL:display:

Implementation

objc.ObjCObjectBase? openDocumentWithContentsOfURL$1(
  objc.NSURL url, {
  required bool display,
}) {
  objc.checkOsVersionInternal(
    'NSDocumentController.openDocumentWithContentsOfURL:display:',
    iOS: (true, null),
    macOS: (false, (10, 0, 0)),
  );
  final _ret = _objc_msgSend_17amj0z(
    this.ref.pointer,
    _sel_openDocumentWithContentsOfURL_display_,
    url.ref.pointer,
    display,
  );
  return _ret.address == 0
      ? null
      : objc.ObjCObjectBase(_ret, retain: true, release: true);
}