# generated by 'rake generate'
require 'cocoa/bindings/NSObject'
module Cocoa
  class NSDocument < Cocoa::NSObject
    attach_method :addWindowController, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :autosaveDocumentWithDelegate, :args=>3, :names=>[:didAutosaveSelector, :contextInfo], :types=>["@", ":", "^v"], :retval=>"v"
    attach_method :autosaveWithImplicitCancellability, :args=>2, :names=>[:completionHandler], :types=>["B", "@?"], :retval=>"v"
    attach_method :autosavedContentsFileURL, :args=>0, :names=>[], :types=>[], :retval=>"@"
    attach_singular_method :autosavesDrafts, :args=>0, :names=>[], :types=>[], :retval=>"B"
    attach_singular_method :autosavesInPlace, :args=>0, :names=>[], :types=>[], :retval=>"B"
    attach_method :autosavingFileType, :args=>0, :names=>[], :types=>[], :retval=>"@"
    attach_method :autosavingIsImplicitlyCancellable, :args=>0, :names=>[], :types=>[], :retval=>"B"
    attach_method :backupFileURL, :args=>0, :names=>[], :types=>[], :retval=>"@"
    attach_method :browseDocumentVersions, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :canAsynchronouslyWriteToURL, :args=>3, :names=>[:ofType, :forSaveOperation], :types=>["@", "@", "Q"], :retval=>"B"
    attach_method :canCloseDocumentWithDelegate, :args=>3, :names=>[:shouldCloseSelector, :contextInfo], :types=>["@", ":", "^v"], :retval=>"v"
    attach_singular_method :canConcurrentlyReadDocumentsOfType, :args=>1, :names=>[], :types=>["@"], :retval=>"B"
    attach_method :changeCountTokenForSaveOperation, :args=>1, :names=>[], :types=>["Q"], :retval=>"@"
    attach_method :checkAutosavingSafetyAndReturnError, :args=>1, :names=>[], :types=>["^@"], :retval=>"B"
    attach_method :close, :args=>0, :names=>[], :types=>[], :retval=>"v"
    attach_method :continueActivityUsingBlock, :args=>1, :names=>[], :types=>["@?"], :retval=>"v"
    attach_method :continueAsynchronousWorkOnMainThreadUsingBlock, :args=>1, :names=>[], :types=>["@?"], :retval=>"v"
    attach_method :dataOfType, :args=>2, :names=>[:error], :types=>["@", "^@"], :retval=>"@"
    attach_method :dataRepresentationOfType, :args=>1, :names=>[], :types=>["@"], :retval=>"@"
    attach_method :defaultDraftName, :args=>0, :names=>[], :types=>[], :retval=>"@"
    attach_method :displayName, :args=>0, :names=>[], :types=>[], :retval=>"@"
    attach_method :duplicateAndReturnError, :args=>1, :names=>[], :types=>["^@"], :retval=>"@"
    attach_method :duplicateDocument, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :duplicateDocumentWithDelegate, :args=>3, :names=>[:didDuplicateSelector, :contextInfo], :types=>["@", ":", "^v"], :retval=>"v"
    attach_method :encodeRestorableStateWithCoder, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :fileAttributesToWriteToFile, :args=>3, :names=>[:ofType, :saveOperation], :types=>["@", "@", "Q"], :retval=>"@"
    attach_method :fileAttributesToWriteToURL, :args=>5, :names=>[:ofType, :forSaveOperation, :originalContentsURL, :error], :types=>["@", "@", "Q", "@", "^@"], :retval=>"@"
    attach_method :fileModificationDate, :args=>0, :names=>[], :types=>[], :retval=>"@"
    attach_method :fileName, :args=>0, :names=>[], :types=>[], :retval=>"@"
    attach_method :fileNameExtensionForType, :args=>2, :names=>[:saveOperation], :types=>["@", "Q"], :retval=>"@"
    attach_method :fileNameExtensionWasHiddenInLastRunSavePanel, :args=>0, :names=>[], :types=>[], :retval=>"B"
    attach_method :fileType, :args=>0, :names=>[], :types=>[], :retval=>"@"
    attach_method :fileTypeFromLastRunSavePanel, :args=>0, :names=>[], :types=>[], :retval=>"@"
    attach_method :fileURL, :args=>0, :names=>[], :types=>[], :retval=>"@"
    attach_method :fileWrapperOfType, :args=>2, :names=>[:error], :types=>["@", "^@"], :retval=>"@"
    attach_method :fileWrapperRepresentationOfType, :args=>1, :names=>[], :types=>["@"], :retval=>"@"
    attach_method :handleCloseScriptCommand, :args=>1, :names=>[], :types=>["@"], :retval=>"@"
    attach_method :handlePrintScriptCommand, :args=>1, :names=>[], :types=>["@"], :retval=>"@"
    attach_method :handleSaveScriptCommand, :args=>1, :names=>[], :types=>["@"], :retval=>"@"
    attach_method :hasUnautosavedChanges, :args=>0, :names=>[], :types=>[], :retval=>"B"
    attach_method :hasUndoManager, :args=>0, :names=>[], :types=>[], :retval=>"B"
    attach_method :init, :args=>0, :names=>[], :types=>[], :retval=>"@"
    attach_method :initForURL, :args=>4, :names=>[:withContentsOfURL, :ofType, :error], :types=>["@", "@", "@", "^@"], :retval=>"@"
    attach_method :initWithContentsOfFile, :args=>2, :names=>[:ofType], :types=>["@", "@"], :retval=>"@"
    attach_method :initWithContentsOfURL, [{:args=>2, :names=>[:ofType], :types=>["@", "@"], :retval=>"@"}, {:args=>3, :names=>[:ofType, :error], :types=>["@", "@", "^@"], :retval=>"@"}]
    attach_method :initWithType, :args=>2, :names=>[:error], :types=>["@", "^@"], :retval=>"@"
    attach_method :invalidateRestorableState, :args=>0, :names=>[], :types=>[], :retval=>"v"
    attach_method :isDocumentEdited, :args=>0, :names=>[], :types=>[], :retval=>"B"
    attach_method :isDraft, :args=>0, :names=>[], :types=>[], :retval=>"B"
    attach_method :isEntireFileLoaded, :args=>0, :names=>[], :types=>[], :retval=>"B"
    attach_method :isInViewingMode, :args=>0, :names=>[], :types=>[], :retval=>"B"
    attach_method :isLocked, :args=>0, :names=>[], :types=>[], :retval=>"B"
    attach_singular_method :isNativeType, :args=>1, :names=>[], :types=>["@"], :retval=>"B"
    attach_method :keepBackupFile, :args=>0, :names=>[], :types=>[], :retval=>"B"
    attach_method :lastComponentOfFileName, :args=>0, :names=>[], :types=>[], :retval=>"@"
    attach_method :loadDataRepresentation, :args=>2, :names=>[:ofType], :types=>["@", "@"], :retval=>"B"
    attach_method :loadFileWrapperRepresentation, :args=>2, :names=>[:ofType], :types=>["@", "@"], :retval=>"B"
    attach_method :lockDocument, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :lockDocumentWithCompletionHandler, :args=>1, :names=>[], :types=>["@?"], :retval=>"v"
    attach_method :lockWithCompletionHandler, :args=>1, :names=>[], :types=>["@?"], :retval=>"v"
    attach_method :makeWindowControllers, :args=>0, :names=>[], :types=>[], :retval=>"v"
    attach_method :moveDocument, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :moveDocumentToUbiquityContainer, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :moveDocumentWithCompletionHandler, :args=>1, :names=>[], :types=>["@?"], :retval=>"v"
    attach_method :moveToURL, :args=>2, :names=>[:completionHandler], :types=>["@", "@?"], :retval=>"v"
    attach_method :objectSpecifier, :args=>0, :names=>[], :types=>[], :retval=>"@"
    attach_method :performActivityWithSynchronousWaiting, :args=>2, :names=>[:usingBlock], :types=>["B", "@?"], :retval=>"v"
    attach_method :performAsynchronousFileAccessUsingBlock, :args=>1, :names=>[], :types=>["@?"], :retval=>"v"
    attach_method :performSynchronousFileAccessUsingBlock, :args=>1, :names=>[], :types=>["@?"], :retval=>"v"
    attach_method :preparePageLayout, :args=>1, :names=>[], :types=>["@"], :retval=>"B"
    attach_method :prepareSavePanel, :args=>1, :names=>[], :types=>["@"], :retval=>"B"
    attach_method :presentError, [{:args=>1, :names=>[], :types=>["@"], :retval=>"B"}, {:args=>5, :names=>[:modalForWindow, :delegate, :didPresentSelector, :contextInfo], :types=>["@", "@", "@", ":", "^v"], :retval=>"v"}]
    attach_singular_method :preservesVersions, :args=>0, :names=>[], :types=>[], :retval=>"B"
    attach_method :printDocument, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :printDocumentWithSettings, :args=>5, :names=>[:showPrintPanel, :delegate, :didPrintSelector, :contextInfo], :types=>["@", "B", "@", ":", "^v"], :retval=>"v"
    attach_method :printInfo, :args=>0, :names=>[], :types=>[], :retval=>"@"
    attach_method :printOperationWithSettings, :args=>2, :names=>[:error], :types=>["@", "^@"], :retval=>"@"
    attach_method :printShowingPrintPanel, :args=>1, :names=>[], :types=>["B"], :retval=>"v"
    attach_method :readFromData, :args=>3, :names=>[:ofType, :error], :types=>["@", "@", "^@"], :retval=>"B"
    attach_method :readFromFile, :args=>2, :names=>[:ofType], :types=>["@", "@"], :retval=>"B"
    attach_method :readFromFileWrapper, :args=>3, :names=>[:ofType, :error], :types=>["@", "@", "^@"], :retval=>"B"
    attach_method :readFromURL, [{:args=>2, :names=>[:ofType], :types=>["@", "@"], :retval=>"B"}, {:args=>3, :names=>[:ofType, :error], :types=>["@", "@", "^@"], :retval=>"B"}]
    attach_singular_method :readableTypes, :args=>0, :names=>[], :types=>[], :retval=>"@"
    attach_method :removeWindowController, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :renameDocument, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_singular_method :restorableStateKeyPaths, :args=>0, :names=>[], :types=>[], :retval=>"@"
    attach_method :restoreDocumentWindowWithIdentifier, :args=>3, :names=>[:state, :completionHandler], :types=>["@", "@", "@?"], :retval=>"v"
    attach_method :restoreStateWithCoder, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :revertDocumentToSaved, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :revertToContentsOfURL, :args=>3, :names=>[:ofType, :error], :types=>["@", "@", "^@"], :retval=>"B"
    attach_method :revertToSavedFromFile, :args=>2, :names=>[:ofType], :types=>["@", "@"], :retval=>"B"
    attach_method :revertToSavedFromURL, :args=>2, :names=>[:ofType], :types=>["@", "@"], :retval=>"B"
    attach_method :runModalPageLayoutWithPrintInfo, [{:args=>1, :names=>[], :types=>["@"], :retval=>"q"}, {:args=>4, :names=>[:delegate, :didRunSelector, :contextInfo], :types=>["@", "@", ":", "^v"], :retval=>"v"}]
    attach_method :runModalPrintOperation, :args=>4, :names=>[:delegate, :didRunSelector, :contextInfo], :types=>["@", "@", ":", "^v"], :retval=>"v"
    attach_method :runModalSavePanelForSaveOperation, :args=>4, :names=>[:delegate, :didSaveSelector, :contextInfo], :types=>["Q", "@", ":", "^v"], :retval=>"v"
    attach_method :runPageLayout, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :saveDocument, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :saveDocumentAs, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :saveDocumentTo, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :saveDocumentWithDelegate, :args=>3, :names=>[:didSaveSelector, :contextInfo], :types=>["@", ":", "^v"], :retval=>"v"
    attach_method :saveToFile, :args=>5, :names=>[:saveOperation, :delegate, :didSaveSelector, :contextInfo], :types=>["@", "Q", "@", ":", "^v"], :retval=>"v"
    attach_method :saveToURL, [{:args=>4, :names=>[:ofType, :forSaveOperation, :completionHandler], :types=>["@", "@", "Q", "@?"], :retval=>"v"}, {:args=>6, :names=>[:ofType, :forSaveOperation, :delegate, :didSaveSelector, :contextInfo], :types=>["@", "@", "Q", "@", ":", "^v"], :retval=>"v"}, {:args=>4, :names=>[:ofType, :forSaveOperation, :error], :types=>["@", "@", "Q", "^@"], :retval=>"B"}]
    attach_method :scheduleAutosaving, :args=>0, :names=>[], :types=>[], :retval=>"v"
    attach_method :setAutosavedContentsFileURL, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :setDisplayName, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :setDraft, :args=>1, :names=>[], :types=>["B"], :retval=>"v"
    attach_method :setFileModificationDate, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :setFileName, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :setFileType, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :setFileURL, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :setHasUndoManager, :args=>1, :names=>[], :types=>["B"], :retval=>"v"
    attach_method :setLastComponentOfFileName, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :setPrintInfo, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :setUndoManager, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :setWindow, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :shouldChangePrintInfo, :args=>1, :names=>[], :types=>["@"], :retval=>"B"
    attach_method :shouldCloseWindowController, :args=>4, :names=>[:delegate, :shouldCloseSelector, :contextInfo], :types=>["@", "@", ":", "^v"], :retval=>"v"
    attach_method :shouldRunSavePanelWithAccessoryView, :args=>0, :names=>[], :types=>[], :retval=>"B"
    attach_method :showWindows, :args=>0, :names=>[], :types=>[], :retval=>"v"
    attach_method :unblockUserInteraction, :args=>0, :names=>[], :types=>[], :retval=>"v"
    attach_method :undoManager, :args=>0, :names=>[], :types=>[], :retval=>"@"
    attach_method :unlockDocument, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :unlockDocumentWithCompletionHandler, :args=>1, :names=>[], :types=>["@?"], :retval=>"v"
    attach_method :unlockWithCompletionHandler, :args=>1, :names=>[], :types=>["@?"], :retval=>"v"
    attach_method :updateChangeCount, :args=>1, :names=>[], :types=>["Q"], :retval=>"v"
    attach_method :updateChangeCountWithToken, :args=>2, :names=>[:forSaveOperation], :types=>["@", "Q"], :retval=>"v"
    attach_singular_method :usesUbiquitousStorage, :args=>0, :names=>[], :types=>[], :retval=>"B"
    attach_method :validateUserInterfaceItem, :args=>1, :names=>[], :types=>["@"], :retval=>"B"
    attach_method :willNotPresentError, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :willPresentError, :args=>1, :names=>[], :types=>["@"], :retval=>"@"
    attach_method :windowControllerDidLoadNib, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :windowControllerWillLoadNib, :args=>1, :names=>[], :types=>["@"], :retval=>"v"
    attach_method :windowControllers, :args=>0, :names=>[], :types=>[], :retval=>"@"
    attach_method :windowForSheet, :args=>0, :names=>[], :types=>[], :retval=>"@"
    attach_method :windowNibName, :args=>0, :names=>[], :types=>[], :retval=>"@"
    attach_singular_method :writableTypes, :args=>0, :names=>[], :types=>[], :retval=>"@"
    attach_method :writableTypesForSaveOperation, :args=>1, :names=>[], :types=>["Q"], :retval=>"@"
    attach_method :writeSafelyToURL, :args=>4, :names=>[:ofType, :forSaveOperation, :error], :types=>["@", "@", "Q", "^@"], :retval=>"B"
    attach_method :writeToFile, [{:args=>2, :names=>[:ofType], :types=>["@", "@"], :retval=>"B"}, {:args=>4, :names=>[:ofType, :originalFile, :saveOperation], :types=>["@", "@", "@", "Q"], :retval=>"B"}]
    attach_method :writeToURL, [{:args=>2, :names=>[:ofType], :types=>["@", "@"], :retval=>"B"}, {:args=>3, :names=>[:ofType, :error], :types=>["@", "@", "^@"], :retval=>"B"}, {:args=>5, :names=>[:ofType, :forSaveOperation, :originalContentsURL, :error], :types=>["@", "@", "Q", "@", "^@"], :retval=>"B"}]
    attach_method :writeWithBackupToFile, :args=>3, :names=>[:ofType, :saveOperation], :types=>["@", "@", "Q"], :retval=>"B"
  end
end
