makeDocumentWithContentsOfURL method

ObjCObjectBase? makeDocumentWithContentsOfURL(
  1. NSURL url, {
  2. required NSString ofType,
})

makeDocumentWithContentsOfURL:ofType:

Implementation

objc.ObjCObjectBase? makeDocumentWithContentsOfURL(
  objc.NSURL url, {
  required objc.NSString ofType,
}) {
  objc.checkOsVersionInternal(
    'NSDocumentController.makeDocumentWithContentsOfURL:ofType:',
    iOS: (true, null),
    macOS: (false, (10, 0, 0)),
  );
  final _ret = _objc_msgSend_15qeuct(
    this.ref.pointer,
    _sel_makeDocumentWithContentsOfURL_ofType_,
    url.ref.pointer,
    ofType.ref.pointer,
  );
  return _ret.address == 0
      ? null
      : objc.ObjCObjectBase(_ret, retain: true, release: true);
}