writeWithBackupToFile method

bool writeWithBackupToFile(
  1. NSString fullDocumentPath, {
  2. required NSString ofType,
  3. required NSSaveOperationType saveOperation,
})

writeWithBackupToFile:ofType:saveOperation:

Implementation

bool writeWithBackupToFile(
  objc.NSString fullDocumentPath, {
  required objc.NSString ofType,
  required NSSaveOperationType saveOperation,
}) {
  objc.checkOsVersionInternal(
    'NSDocument.writeWithBackupToFile:ofType:saveOperation:',
    iOS: (true, null),
    macOS: (false, (10, 0, 0)),
  );
  return _objc_msgSend_11c9g6o(
    this.ref.pointer,
    _sel_writeWithBackupToFile_ofType_saveOperation_,
    fullDocumentPath.ref.pointer,
    ofType.ref.pointer,
    saveOperation.value,
  );
}