initWithContentsOfURL method
ObjCObjectBase?
initWithContentsOfURL(
- NSURL url, {
- required NSString ofType,
initWithContentsOfURL:ofType:
Implementation
objc.ObjCObjectBase? initWithContentsOfURL(
objc.NSURL url, {
required objc.NSString ofType,
}) {
objc.checkOsVersionInternal(
'NSDocument.initWithContentsOfURL:ofType:',
iOS: (true, null),
macOS: (false, (10, 0, 0)),
);
final _ret = _objc_msgSend_15qeuct(
this.ref.retainAndReturnPointer(),
_sel_initWithContentsOfURL_ofType_,
url.ref.pointer,
ofType.ref.pointer,
);
return _ret.address == 0
? null
: objc.ObjCObjectBase(_ret, retain: false, release: true);
}