loadDataRepresentation method

bool loadDataRepresentation(
  1. NSData data, {
  2. required NSString ofType,
})

loadDataRepresentation:ofType:

Implementation

bool loadDataRepresentation(
  objc.NSData data, {
  required objc.NSString ofType,
}) {
  objc.checkOsVersionInternal(
    'NSDocument.loadDataRepresentation:ofType:',
    iOS: (true, null),
    macOS: (false, (10, 0, 0)),
  );
  return _objc_msgSend_1lsax7n(
    this.ref.pointer,
    _sel_loadDataRepresentation_ofType_,
    data.ref.pointer,
    ofType.ref.pointer,
  );
}