org.rococoa.cocoa.appkit
Class NSDocument

java.lang.Object
  extended by org.rococoa.cocoa.foundation.NSObject
      extended by org.rococoa.cocoa.appkit.NSDocument
All Implemented Interfaces:
NSDeprecated, NSUserInterfaceValidations, ABActionDelegate, AMWorkflowControllerDelegate, IMVideoDataSource, NSAccessibility, NSAccessibilityAdditions, NSAnimationDelegate, NSApplicationScriptingDelegation, NSArchiverCallback, NSBrowserDelegate, NSClassDescriptionPrimitives, NSCoderMethods, NSColorPanelResponderMethod, NSComboBoxCellDataSource, NSComboBoxDataSource, NSComboBoxNotifications, NSComparisonMethods, NSConnectionDelegateMethods, NSControlSubclassDelegate, NSControlSubclassNotifications, NSCopyLinkMoveHandler, NSDatePickerCellDelegate, NSDelayedPerforming, NSDeprecatedKeyValueCoding, NSDeprecatedKeyValueObservingCustomization, NSDeprecatedMethods, NSDictionaryControllerKeyValuePair, NSDistantObjectRequestMethods, NSDistributedObjects, NSDraggingDestination, NSDraggingSource, NSDrawerDelegate, NSDrawerNotifications, NSEditor, NSEditorRegistration, NSErrorRecoveryAttempting, NSExceptionHandlerDelegate, NSFileManagerFileOperationAdditions, NSFontManagerDelegate, NSFontManagerResponderMethod, NSFontPanelValidationAdditions, NSImageDelegate, NSKeyedArchiverDelegate, NSKeyedArchiverObjectSubstitution, NSKeyedUnarchiverDelegate, NSKeyedUnarchiverObjectSubstitution, NSKeyValueBindingCreation, NSKeyValueCoding, NSKeyValueObserverNotification, NSKeyValueObserverRegistration, NSKeyValueObserving, NSKeyValueObservingCustomization, NSLayoutManagerDelegate, NSMenuDelegate, NSMenuValidation, NSMetadataQueryDelegate, NSNetServiceBrowserDelegateMethods, NSNetServiceDelegateMethods, NSNibAwaking, NSOutlineViewDataSource, NSOutlineViewDelegate, NSOutlineViewNotifications, NSPasteboardOwner, NSPlaceholders, NSPortDelegateMethods, NSRuleEditorDelegateMethods, NSSavePanelDelegate, NSScriptClassDescription, NSScripting, NSScriptingComparisonMethods, NSScriptKeyValueCoding, NSScriptObjectSpecifiers, NSSoundDelegateMethods, NSSpeechRecognizerDelegate, NSSpeechSynthesizerDelegate, NSSpellServerDelegate, NSSplitViewDelegate, NSStreamDelegateEventExtensions, NSTabViewDelegate, NSTextDelegate, NSTextViewDelegate, NSThreadPerformAdditions, NSTokenFieldCellDelegate, NSTokenFieldDelegate, NSToolbarDelegate, NSToolbarNotifications, NSURLClient, NSURLConnectionDelegate, NSURLDownloadDelegate, NSWindowDelegate, NSWindowNotifications, NSXMLParserDelegateEventAdditions, QTCaptureDecompressedVideoOutputDelegate, QTCaptureFileOutputDelegate, QTCaptureVideoPreviewOutputDelegate, QTCaptureViewDelegate, QTMovieDelegate, QTMovieViewDelegate, SFAuthorizationViewDelegate, SFCertificatePanelDelegate, SFChooseIdentityPanelDelegate, WebDownloadDelegate, WebFrameLoadDelegate, WebJavaPlugIn, WebPlugIn, WebPlugInContainer, WebPolicyDelegate, WebResourceLoadDelegate, WebScripting, WebUIDelegate, WebViewEditingDelegate, NSObject
Direct Known Subclasses:
NSPersistentDocument

public abstract class NSDocument
extends NSObject
implements NSScripting, NSDeprecated, NSUserInterfaceValidations

This file was autogenerated by JNAerator,
a tool written by Olivier Chafik that uses a few opensource projects..
For help, please visit NativeLibs4Java, Rococoa, or JNA.


Nested Class Summary
static class NSDocument.__docFlags
           
 class NSDocument._class_
           
 
Nested classes/interfaces inherited from interface org.rococoa.cocoa.appkit.categories.NSScripting
NSScripting._static_
 
Nested classes/interfaces inherited from interface org.rococoa.cocoa.appkit.categories.NSDeprecated
NSDeprecated._static_
 
Nested classes/interfaces inherited from interface org.rococoa.cocoa.appkit.protocols.NSUserInterfaceValidations
NSUserInterfaceValidations._static_
 
Nested classes/interfaces inherited from interface org.rococoa.cocoa.foundation.protocols.NSObject
NSObject._static_
 
Constructor Summary
NSDocument()
           
 
Method Summary
abstract  void addWindowController(NSWindowController windowController)
          Add or remove a window controller from this document's list of attached window controllers, and set the document of the passed-in window controller.
static NSDocument alloc()
           
abstract  NSURL autosavedContentsFileURL()
           
abstract  void autosaveDocumentWithDelegate_didAutosaveSelector_contextInfo(org.rococoa.ID delegate, org.rococoa.Selector didAutosaveSelector, Pointer contextInfo)
          Autosave the document's contents at an appropriate location, and then send the message selected by didAutosaveSelector to the delegate, with the contextInfo as the last argument.
abstract  NSString autosavingFileType()
          Return the document type that should be used for an autosave operation.
abstract  void canCloseDocumentWithDelegate_shouldCloseSelector_contextInfo(org.rococoa.ID delegate, org.rococoa.Selector shouldCloseSelector, Pointer contextInfo)
          If the document is modified, present a panel to the user informing them that the document is modified and asking if it should be saved.
abstract  void close()
          Close the document, discarding any as-yet-unsaved modifications.
static NSDocument create()
          Factory method
static NSDocument createForURL_withContentsOfURL_ofType_error(NSURL absoluteDocumentURL, NSURL absoluteDocumentContentsURL, NSString typeName, PointerByReference outError)
          Factory method
static NSDocument createWithContentsOfURL_ofType_error(NSURL absoluteURL, NSString typeName, PointerByReference outError)
          Factory method
static NSDocument createWithType_error(NSString typeName, PointerByReference outError)
          Factory method
abstract  NSData dataOfType_error(NSString typeName, PointerByReference outError)
          Create and return a data object that contains the contents of this document, formatted to a specified type, or return nil after setting *outError to an NSError that encapsulates the reason why the data object could not be created.
abstract  NSString displayName()
          Returns a name for this document that is fit for presentation to the user.
abstract  NSDictionary fileAttributesToWriteToURL_ofType_forSaveOperation_originalContentsURL_error(NSURL absoluteURL, NSString typeName, int saveOperation, NSURL absoluteOriginalContentsURL, PointerByReference outError)
          Given that a file is being saved, return the attributes that should be written to a file or file package located by a URL, formatted to a specified type, for a particular kind of save operation.
abstract  NSDate fileModificationDate()
           
abstract  NSString fileNameExtensionForType_saveOperation(NSString typeName, int saveOperation)
          For a specified type, and a particular kind of save operation, return a file name extension that can be appended to a base file name.
abstract  boolean fileNameExtensionWasHiddenInLastRunSavePanel()
          Return YES if a save panel has been presented by this document and the user chose to hide the name extension of the file that was selected in that save panel, NO otherwise.
abstract  NSString fileType()
           
abstract  NSString fileTypeFromLastRunSavePanel()
          If a save panel has been presented by this document, and a choice of file type was presented in that panel, return the name of the file type that the user chose.
abstract  NSURL fileURL()
           
abstract  NSFileWrapper fileWrapperOfType_error(NSString typeName, PointerByReference outError)
          Create and return a file wrapper that contains the contents of this document, formatted to a specified type, or return nil after setting *outError to an NSError that encapsulates the reason why the file wrapper could not be created.
abstract  boolean hasUnautosavedChanges()
          Return YES if the document has changes that have not been autosaved, NO otherwise, as determined by the history of previous invocations of -updateChangeCount:.
abstract  boolean hasUndoManager()
           
abstract  NSDocument init()
          The designated initializer.
abstract  NSDocument initForURL_withContentsOfURL_ofType_error(NSURL absoluteDocumentURL, NSURL absoluteDocumentContentsURL, NSString typeName, PointerByReference outError)
          Initialize a document located by a URL, of a specified type, but by reading the contents for the document from another URL, and return it if successful.
abstract  NSDocument initWithContentsOfURL_ofType_error(NSURL absoluteURL, NSString typeName, PointerByReference outError)
          Initialize a document located by a URL, of a specified type, and return it if successful.
abstract  NSDocument initWithType_error(NSString typeName, PointerByReference outError)
          Initialize a new empty document of a specified type, and return it if successful.
abstract  boolean isDocumentEdited()
          Return YES if the document has changes that have not been saved, NO otherwise, primarily determined by the history of previous invocations of -updateChangeCount:.
static boolean isNativeType(NSString type)
          Return YES if instances of this class can be instantiated for the application to play the Editor role, NO otherwise.
abstract  boolean keepBackupFile()
          Return YES if the old on-disk revision of a document that is being overwritten should be preserved during a NSSaveOperation, NO otherwise.
abstract  void makeWindowControllers()
          Create the user interface for this document, but don't show it yet.
abstract  boolean preparePageLayout(NSPageLayout pageLayout)
          Given the page layout panel that -runModalPageLayoutWithPrintInfo:delegate:didRunSelector:contextInfo: is about to present to the user, make any final changes before it is presented, and return YES for success.
abstract  boolean prepareSavePanel(NSSavePanel savePanel)
          Given the save panel that -runModalSavePanelForSaveOperation:delegate:didSaveSelector:contextInfo: is about to present to the user, make any final changes before it is presented, and return YES for success.
abstract  void presentError_modalForWindow_delegate_didPresentSelector_contextInfo(NSError error, NSWindow window, org.rococoa.ID delegate, org.rococoa.Selector didPresentSelector, Pointer contextInfo)
          Methods that are declared by NSResponder and also implemented by NSDocument, even though for historical reasons NSDocument is not a subclass of NSResponder.
abstract  boolean presentError(NSError error)
           
abstract  void printDocument(org.rococoa.ID sender)
          The action of the File menu's Print... item item in a document-based application.
abstract  void printDocumentWithSettings_showPrintPanel_delegate_didPrintSelector_contextInfo(NSDictionary printSettings, boolean showPrintPanel, org.rococoa.ID delegate, org.rococoa.Selector didPrintSelector, Pointer contextInfo)
          Print the document.
abstract  NSPrintInfo printInfo()
           
abstract  NSPrintOperation printOperationWithSettings_error(NSDictionary printSettings, PointerByReference outError)
          Create a print operation that can be run to print the document's current contents, and return it if successful.
static NSArray readableTypes()
          Return the names of the types for which this class can be instantiated for the application to play the Editor or Viewer role.
abstract  boolean readFromData_ofType_error(NSData data, NSString typeName, PointerByReference outError)
          Set the contents of this document by reading from data of a specified type, and return YES if successful.
abstract  boolean readFromFileWrapper_ofType_error(NSFileWrapper fileWrapper, NSString typeName, PointerByReference outError)
          Set the contents of this document by reading from a file wrapper of a specified type, and return YES if successful.
abstract  boolean readFromURL_ofType_error(NSURL absoluteURL, NSString typeName, PointerByReference outError)
          Set the contents of this document by reading from a file or file package located by a URL, of a specified type, and return YES if successful.
abstract  void removeWindowController(NSWindowController windowController)
           
abstract  void revertDocumentToSaved(org.rococoa.ID sender)
          The action of the File menu's Revert to Saved item in a document-based application.
abstract  boolean revertToContentsOfURL_ofType_error(NSURL absoluteURL, NSString typeName, PointerByReference outError)
          Discard all unsaved document modifications and replace the document's contents by reading a file or file package located by a URL, of a specified type, and return YES if successful.
abstract  void runModalPageLayoutWithPrintInfo_delegate_didRunSelector_contextInfo(NSPrintInfo printInfo, org.rococoa.ID delegate, org.rococoa.Selector didRunSelector, Pointer contextInfo)
          Present a page layout panel to the user.
abstract  void runModalPrintOperation_delegate_didRunSelector_contextInfo(NSPrintOperation printOperation, org.rococoa.ID delegate, org.rococoa.Selector didRunSelector, Pointer contextInfo)
          Run a print operation, possibly with printing UI presented document-modally.
abstract  void runModalSavePanelForSaveOperation_delegate_didSaveSelector_contextInfo(int saveOperation, org.rococoa.ID delegate, org.rococoa.Selector didSaveSelector, Pointer contextInfo)
          Present a save panel to the user, then try to save the document if the user OKs the panel.
abstract  void runPageLayout(org.rococoa.ID sender)
          The action of the File menu's Page Setup... item in a document-based application.
abstract  void saveDocument(org.rococoa.ID sender)
          The action of the File menu's Save item in a document-based application.
abstract  void saveDocumentAs(org.rococoa.ID sender)
          The action of the File menu's Save As... item in a document-based application.
abstract  void saveDocumentTo(org.rococoa.ID sender)
          The action of the File menu's Export... item in a document-based application (actually, the menu item goes by different names in different applications; check the Human Interface Guidelines).
abstract  void saveDocumentWithDelegate_didSaveSelector_contextInfo(org.rococoa.ID delegate, org.rococoa.Selector didSaveSelector, Pointer contextInfo)
          If an NSSaveOperation can be performed without further user intervention (at the very least, neither -fileURL nor -fileType return nil), then save the document.
abstract  void saveToURL_ofType_forSaveOperation_delegate_didSaveSelector_contextInfo(NSURL absoluteURL, NSString typeName, int saveOperation, org.rococoa.ID delegate, org.rococoa.Selector didSaveSelector, Pointer contextInfo)
          Save the contents of the document to a file or file package located by a URL, formatted to a specified type, for a particular kind of save operation.
abstract  boolean saveToURL_ofType_forSaveOperation_error(NSURL absoluteURL, NSString typeName, int saveOperation, PointerByReference outError)
          Save the contents of the document to a file or file package located by a URL, formatted to a specified type, for a particular kind of save operation, and return YES if successful.
abstract  void setAutosavedContentsFileURL(NSURL absoluteURL)
          The location of the most recently autosaved document contents.
abstract  void setFileModificationDate(NSDate modificationDate)
          The last known modification date of the document's on-disk representation.
abstract  void setFileType(NSString typeName)
          The name of the document's format.
abstract  void setFileURL(NSURL absoluteURL)
          The location of the document's on-disk representation.
abstract  void setHasUndoManager(boolean hasUndoManager)
          Whether or not the document has an undo manager.
abstract  void setPrintInfo(NSPrintInfo printInfo)
          The print info for the document.
abstract  void setUndoManager(NSUndoManager undoManager)
          The document's undo manager.
abstract  void setWindow(NSWindow window)
          The setter for the "window" IB outlet of this class.
abstract  boolean shouldChangePrintInfo(NSPrintInfo newPrintInfo)
          Given a print info object that is the result of the user OK'ing the page layout panel presented by -runPageLayout:, return YES if the print info should be set in the document, NO otherwise.
abstract  void shouldCloseWindowController_delegate_shouldCloseSelector_contextInfo(NSWindowController windowController, org.rococoa.ID delegate, org.rococoa.Selector shouldCloseSelector, Pointer contextInfo)
          If the window controller is one whose closing results in the document being closed too, or there is only one window controller attached to the document, do the exact same thing that -canCloseDocumentWithDelegate:shouldCloseSelector:contextInfo: would do.
abstract  boolean shouldRunSavePanelWithAccessoryView()
          Return YES if -runModalSavePanelForSaveOperation:delegate:didSaveSelector:contextInfo: should add NSDocument's standard file format accessory view to the save panel, NO otherwise.
abstract  void showWindows()
          Present the user interface for this document.
abstract  NSUndoManager undoManager()
           
abstract  void updateChangeCount(int change)
          Record the fact that a change affecting the value returned by -isDocumentEdited has occurred.
abstract  boolean validateUserInterfaceItem(org.rococoa.ID anItem)
          Deprecated. use the safer method validateUserInterfaceItem(org.rococoa.cocoa.appkit.protocols.NSValidatedUserInterfaceItem) instead
abstract  boolean validateUserInterfaceItem(NSValidatedUserInterfaceItem anItem)
          Conformance to the NSUserInterfaceValidations protocol.
abstract  NSError willPresentError(NSError error)
           
abstract  void windowControllerDidLoadNib(NSWindowController windowController)
           
abstract  NSArray windowControllers()
          Return an array of all window controllers that have been added to this document with -addWindowController: but not yet removed with -removeWindowController:.
abstract  void windowControllerWillLoadNib(NSWindowController windowController)
          Be notified that a window controller will or did load a nib with this document as the nib file's owner.
abstract  NSWindow windowForSheet()
          Of the windows associated with this document, return the one most appropriate to use as the parent window of a document-modal sheet.
abstract  NSString windowNibName()
          Return the name of the nib to be used by -makeWindowControllers.
static NSArray writableTypes()
          Return the names of the types which this class can save.
abstract  NSArray writableTypesForSaveOperation(int saveOperation)
          Return the names of the types to which this document can be saved for a kind of save operation.
abstract  boolean writeSafelyToURL_ofType_forSaveOperation_error(NSURL absoluteURL, NSString typeName, int saveOperation, PointerByReference outError)
          Write the contents of the document to a file or file package located by a URL, formatted to a specified type, for a particular kind of save operation, and return YES if successful.
abstract  boolean writeToURL_ofType_error(NSURL absoluteURL, NSString typeName, PointerByReference outError)
          Write the contents of this document to a file or file package located by a URL, formatted to a specified type, and return YES if successful.
abstract  boolean writeToURL_ofType_forSaveOperation_originalContentsURL_error(NSURL absoluteURL, NSString typeName, int saveOperation, NSURL absoluteOriginalContentsURL, PointerByReference outError)
          Write the contents of the document to a file or file package located by a URL, formatted to a specified type, for a particular kind of save operation, and return YES if successful.
 
Methods inherited from class org.rococoa.cocoa.foundation.NSObject
copy, dealloc, description, doesNotRecognizeSelector, finalize, forwardInvocation, id, isKindOfClass, isKindOfClass, methodSignatureForSelector, mutableCopy, release, retain, retainCount
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.rococoa.cocoa.appkit.categories.NSScripting
orderedDocuments, orderedWindows
 
Methods inherited from interface org.rococoa.cocoa.appkit.categories.NSDeprecated
acceptsBinary, domain, host, imageRectForPaper, isColor, isFontAvailable, isOutputStackInReverseOrder, note
 
Methods inherited from interface org.rococoa.cocoa.foundation.protocols.NSObject
autorelease, class_, conformsToProtocol, hash, isEqual, isKindOfClass, isMemberOfClass, isProxy, performSelector_withObject_withObject, performSelector_withObject, performSelector, respondsToSelector, self, superclass, zone
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSDistantObjectRequestMethods
connection_handleRequest
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSKeyValueObserverNotification
didChange_valuesAtIndexes_forKey, didChangeValueForKey_withSetMutation_usingObjects, didChangeValueForKey, willChange_valuesAtIndexes_forKey, willChangeValueForKey_withSetMutation_usingObjects, willChangeValueForKey
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.WebUIDelegate
webView_contextMenuItemsForElement_defaultMenuItems, webView_createWebViewModalDialogWithRequest, webView_createWebViewWithRequest, webView_dragDestinationActionMaskForDraggingInfo, webView_dragDestinationActionMaskForDraggingInfo, webView_makeFirstResponder, webView_mouseDidMoveOverElement_modifierFlags, webView_printFrameView, webView_runBeforeUnloadConfirmPanelWithMessage_initiatedByFrame, webView_runJavaScriptAlertPanelWithMessage_initiatedByFrame, webView_runJavaScriptAlertPanelWithMessage, webView_runJavaScriptConfirmPanelWithMessage_initiatedByFrame, webView_runJavaScriptConfirmPanelWithMessage, webView_runJavaScriptTextInputPanelWithPrompt_defaultText_initiatedByFrame, webView_runJavaScriptTextInputPanelWithPrompt_defaultText, webView_runOpenPanelForFileButtonWithResultListener, webView_runOpenPanelForFileButtonWithResultListener, webView_setResizable, webView_setStatusBarVisible, webView_setStatusText, webView_setToolbarsVisible, webView_shouldPerformAction_fromSender, webView_validateUserInterfaceItem_defaultValidation, webView_validateUserInterfaceItem_defaultValidation, webView_willPerformDragDestinationAction_forDraggingInfo, webView_willPerformDragDestinationAction_forDraggingInfo, webViewAreToolbarsVisible, webViewClose, webViewContentRect, webViewFirstResponder, webViewFocus, webViewFooterHeight, webViewFrame, webViewHeaderHeight, webViewIsResizable, webViewIsStatusBarVisible, webViewRunModal, webViewShow, webViewStatusText, webViewUnfocus
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSSoundDelegateMethods
sound_didFinishPlaying
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSNetServiceDelegateMethods
netService_didNotPublish, netService_didNotResolve, netService_didUpdateTXTRecordData, netServiceDidPublish, netServiceDidResolveAddress, netServiceDidStop, netServiceWillPublish, netServiceWillResolve
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSRuleEditorDelegateMethods
ruleEditor_child_forCriterion_withRowType, ruleEditor_displayValueForCriterion_inRow, ruleEditor_numberOfChildrenForCriterion_withRowType, ruleEditor_predicatePartsForCriterion_withDisplayValue_inRow, ruleEditorRowsDidChange
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSBrowserDelegate
browser_acceptDrop_atRow_column_dropOperation, browser_acceptDrop_atRow_column_dropOperation, browser_canDragRowsWithIndexes_inColumn_withEvent, browser_createRowsForColumn_inMatrix, browser_isColumnValid, browser_namesOfPromisedFilesDroppedAtDestination_forDraggedRowsWithIndexes_inColumn, browser_nextTypeSelectMatchFromRow_toRow_inColumn_forString, browser_numberOfRowsInColumn, browser_selectCellWithString_inColumn, browser_selectRow_inColumn, browser_shouldShowCellExpansionForRow_column, browser_shouldSizeColumn_forUserResize_toWidth, browser_shouldTypeSelectForEvent_withCurrentSearchString, browser_sizeToFitWidthOfColumn, browser_titleOfColumn, browser_typeSelectStringForRow_inColumn, browser_validateDrop_proposedRow_column_dropOperation, browser_validateDrop_proposedRow_column_dropOperation, browser_willDisplayCell_atRow_column, browser_writeRowsWithIndexes_inColumn_toPasteboard, browserColumnConfigurationDidChange, browserDidScroll, browserWillScroll
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSLayoutManagerDelegate
layoutManager_didCompleteLayoutForTextContainer_atEnd, layoutManagerDidInvalidateLayout
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSComboBoxDataSource
comboBox_completedString, comboBox_indexOfItemWithStringValue, comboBox_objectValueForItemAtIndex, numberOfItemsInComboBox
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSDatePickerCellDelegate
datePickerCell_validateProposedDateValue_timeInterval, datePickerCell_validateProposedDateValue_timeInterval
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSEditorRegistration
objectDidBeginEditing, objectDidEndEditing
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSClassDescriptionPrimitives
attributeKeys, classDescription, inverseForRelationshipKey, toManyRelationshipKeys, toOneRelationshipKeys
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSCoderMethods
awakeAfterUsingCoder, classForCoder, replacementObjectForCoder
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.AMWorkflowControllerDelegate
workflowController_didError, workflowController_didRunAction, workflowController_willRunAction, workflowControllerDidRun, workflowControllerDidStop, workflowControllerWillRun, workflowControllerWillStop
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSComboBoxNotifications
comboBoxSelectionDidChange, comboBoxSelectionIsChanging, comboBoxWillDismiss, comboBoxWillPopUp
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSSavePanelDelegate
panel_compareFilename_with_caseSensitive, panel_directoryDidChange, panel_isValidFilename, panel_shouldShowFilename, panel_userEnteredFilename_confirmed, panel_willExpand, panelSelectionDidChange
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSKeyValueBindingCreation
bind_toObject_withKeyPath_options, exposedBindings, infoForBinding, optionDescriptionsForBinding, unbind, valueClassForBinding
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSKeyValueCoding
dictionaryWithValuesForKeys, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, setNilValueForKey, setValue_forKey, setValue_forKeyPath, setValue_forUndefinedKey, setValuesForKeysWithDictionary, validateValue_forKey_error, validateValue_forKeyPath_error, valueForKey, valueForKeyPath, valueForUndefinedKey
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSErrorRecoveryAttempting
attemptRecoveryFromError_optionIndex_delegate_didRecoverSelector_contextInfo, attemptRecoveryFromError_optionIndex
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSOutlineViewDelegate
outlineView_dataCellForTableColumn_item, outlineView_didClickTableColumn, outlineView_didDragTableColumn, outlineView_heightOfRowByItem, outlineView_isGroupItem, outlineView_mouseDownInHeaderOfTableColumn, outlineView_nextTypeSelectMatchFromItem_toItem_forString, outlineView_selectionIndexesForProposedSelection, outlineView_shouldCollapseItem, outlineView_shouldEditTableColumn_item, outlineView_shouldExpandItem, outlineView_shouldSelectItem, outlineView_shouldSelectTableColumn, outlineView_shouldShowCellExpansionForTableColumn_item, outlineView_shouldTrackCell_forTableColumn_item, outlineView_shouldTypeSelectForEvent_withCurrentSearchString, outlineView_typeSelectStringForTableColumn_item, outlineView_willDisplayCell_forTableColumn_item, outlineView_willDisplayOutlineCell_forTableColumn_item, selectionShouldChangeInOutlineView
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSThreadPerformAdditions
performSelector_onThread_withObject_waitUntilDone_modes, performSelector_onThread_withObject_waitUntilDone, performSelectorInBackground_withObject, performSelectorOnMainThread_withObject_waitUntilDone_modes, performSelectorOnMainThread_withObject_waitUntilDone
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSSplitViewDelegate
splitView_additionalEffectiveRectOfDividerAtIndex, splitView_canCollapseSubview, splitView_constrainMaxCoordinate_ofSubviewAt, splitView_constrainMinCoordinate_ofSubviewAt, splitView_constrainSplitPosition_ofSubviewAt, splitView_shouldCollapseSubview_forDoubleClickOnDividerAtIndex, splitView_shouldHideDividerAtIndex, splitViewDidResizeSubviews, splitViewWillResizeSubviews
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.WebViewEditingDelegate
undoManagerForWebView, webView_doCommandBySelector, webView_shouldApplyStyle_toElementsInDOMRange, webView_shouldBeginEditingInDOMRange, webView_shouldChangeTypingStyle_toStyle, webView_shouldDeleteDOMRange, webView_shouldEndEditingInDOMRange, webView_shouldInsertNode_replacingDOMRange_givenAction, webView_shouldInsertText_replacingDOMRange_givenAction, webViewDidBeginEditing, webViewDidChange, webViewDidChangeSelection, webViewDidChangeTypingStyle, webViewDidEndEditing
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSToolbarNotifications
toolbarDidRemoveItem, toolbarWillAddItem
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.QTCaptureViewDelegate
view_willDisplayImage
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSScriptClassDescription
classCode, className
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.WebFrameLoadDelegate
webView_didCancelClientRedirectForFrame, webView_didChangeLocationWithinPageForFrame, webView_didClearWindowObject_forFrame, webView_didCommitLoadForFrame, webView_didFailLoadWithError_forFrame, webView_didFailProvisionalLoadWithError_forFrame, webView_didFinishLoadForFrame, webView_didReceiveIcon_forFrame, webView_didReceiveServerRedirectForProvisionalLoadForFrame, webView_didReceiveTitle_forFrame, webView_didStartProvisionalLoadForFrame, webView_willCloseFrame, webView_windowScriptObjectAvailable
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSFontPanelValidationAdditions
validModesForFontPanel
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSAccessibilityAdditions
accessibilitySetOverrideValue_forAttribute
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSDraggingSource
draggingSourceOperationMaskForLocal, ignoreModifierKeysWhileDragging, namesOfPromisedFilesDroppedAtDestination
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.WebResourceLoadDelegate
webView_identifierForInitialRequest_fromDataSource, webView_plugInFailedWithError_dataSource, webView_resource_didCancelAuthenticationChallenge_fromDataSource, webView_resource_didFailLoadingWithError_fromDataSource, webView_resource_didFinishLoadingFromDataSource, webView_resource_didReceiveAuthenticationChallenge_fromDataSource, webView_resource_didReceiveContentLength_fromDataSource, webView_resource_didReceiveResponse_fromDataSource, webView_resource_willSendRequest_redirectResponse_fromDataSource
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSConnectionDelegateMethods
authenticateComponents_withData, authenticationDataForComponents, connection_shouldMakeNewConnection, createConversationForConnection, makeNewConnection_sender
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSPasteboardOwner
pasteboard_provideDataForType, pasteboardChangedOwner
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSStreamDelegateEventExtensions
stream_handleEvent
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSDeprecatedKeyValueCoding
handleQueryWithUnboundKey, handleTakeValue_forUnboundKey, storedValueForKey, takeStoredValue_forKey, takeValue_forKey, takeValue_forKeyPath, takeValuesFromDictionary, unableToSetNilForKey, valuesForKeys
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSKeyedArchiverObjectSubstitution
classForKeyedArchiver, replacementObjectForKeyedArchiver
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSNetServiceBrowserDelegateMethods
netServiceBrowser_didFindDomain_moreComing, netServiceBrowser_didFindService_moreComing, netServiceBrowser_didNotSearch, netServiceBrowser_didRemoveDomain_moreComing, netServiceBrowser_didRemoveService_moreComing, netServiceBrowserDidStopSearch, netServiceBrowserWillSearch
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.ABActionDelegate
actionProperty, performActionForPerson_identifier, shouldEnableActionForPerson_identifier, titleForPerson_identifier
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.QTMovieDelegate
externalMovie, movie_linkToURL, movie_shouldContinueOperation_withPhase_atPercent_withAttributes, movieShouldLoadData, movieShouldTask
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSDrawerDelegate
drawerShouldClose, drawerShouldOpen
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSScripting
copyScriptingValue_forKey_withProperties, newScriptingObjectOfClass_forValueForKey_withContentsValue_properties, scriptingProperties, scriptingValueForSpecifier, setScriptingProperties
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.WebPlugInContainer
webFrame, webPlugInContainerLoadRequest_inFrame, webPlugInContainerSelectionColor, webPlugInContainerShowStatus
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.WebScripting
finalizeForWebScript, invokeDefaultMethodWithArguments, invokeUndefinedMethodFromWebScript_withArguments
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.SFChooseIdentityPanelDelegate
chooseIdentityPanelShowHelp
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.QTCaptureFileOutputDelegate
captureOutput_didFinishRecordingToOutputFileAtURL_forConnections_dueToError, captureOutput_didOutputSampleBuffer_fromConnection, captureOutput_didStartRecordingToOutputFileAtURL_forConnections, captureOutput_mustChangeOutputFileAtURL_forConnections_dueToError, captureOutput_shouldChangeOutputFileAtURL_forConnections_dueToError, captureOutput_willFinishRecordingToOutputFileAtURL_forConnections_dueToError, captureOutput_willStartRecordingToOutputFileAtURL_forConnections
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSToolbarDelegate
toolbar_itemForItemIdentifier_willBeInsertedIntoToolbar, toolbarAllowedItemIdentifiers, toolbarDefaultItemIdentifiers, toolbarSelectableItemIdentifiers
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSComparisonMethods
doesContain, isCaseInsensitiveLike, isEqualTo, isGreaterThan, isGreaterThanOrEqualTo, isLessThan, isLessThanOrEqualTo, isLike, isNotEqualTo
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSMetadataQueryDelegate
metadataQuery_replacementObjectForResultObject, metadataQuery_replacementValueForAttribute_value
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.WebDownloadDelegate
downloadWindowForAuthenticationSheet
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSKeyedArchiverDelegate
archiver_didEncodeObject, archiver_willEncodeObject, archiver_willReplaceObject_withObject, archiverDidFinish, archiverWillFinish
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.SFAuthorizationViewDelegate
authorizationViewCreatedAuthorization, authorizationViewDidAuthorize, authorizationViewDidDeauthorize, authorizationViewReleasedAuthorization, authorizationViewShouldDeauthorize
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSWindowDelegate
window_shouldPopUpDocumentPathMenu, window_willPositionSheet_usingRect, windowShouldClose, windowShouldZoom_toFrame, windowWillResize_toSize, windowWillReturnFieldEditor_toObject, windowWillReturnUndoManager, windowWillUseStandardFrame_defaultFrame
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSAnimationDelegate
animation_didReachProgressMark, animation_valueForProgress, animationDidEnd, animationDidStop, animationShouldStart
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSTokenFieldDelegate
tokenField_completionsForSubstring_indexOfToken_indexOfSelectedItem, tokenField_completionsForSubstring_indexOfToken_indexOfSelectedItem, tokenField_displayStringForRepresentedObject, tokenField_editingStringForRepresentedObject, tokenField_hasMenuForRepresentedObject, tokenField_menuForRepresentedObject, tokenField_readFromPasteboard, tokenField_representedObjectForEditingString, tokenField_shouldAddObjects_atIndex, tokenField_styleForRepresentedObject, tokenField_writeRepresentedObjects_toPasteboard
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSKeyValueObservingCustomization
observationInfo, setObservationInfo
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSDictionaryControllerKeyValuePair
isExplicitlyIncluded, key, localizedKey, setKey, setLocalizedKey, setValue, value
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSTabViewDelegate
tabView_didSelectTabViewItem, tabView_shouldSelectTabViewItem, tabView_willSelectTabViewItem, tabViewDidChangeNumberOfTabViewItems
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSApplicationScriptingDelegation
application_delegateHandlesKey
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSSpeechRecognizerDelegate
speechRecognizer_didRecognizeCommand
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSURLConnectionDelegate
connection_didCancelAuthenticationChallenge, connection_didFailWithError, connection_didReceiveAuthenticationChallenge, connection_didReceiveData, connection_didReceiveResponse, connection_willCacheResponse, connection_willSendRequest_redirectResponse, connectionDidFinishLoading
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSControlSubclassNotifications
controlTextDidBeginEditing, controlTextDidChange, controlTextDidEndEditing
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSXMLParserDelegateEventAdditions
parser_didEndElement_namespaceURI_qualifiedName, parser_didEndMappingPrefix, parser_didStartElement_namespaceURI_qualifiedName_attributes, parser_didStartMappingPrefix_toURI, parser_foundAttributeDeclarationWithName_forElement_type_defaultValue, parser_foundCDATA, parser_foundCharacters, parser_foundComment, parser_foundElementDeclarationWithName_model, parser_foundExternalEntityDeclarationWithName_publicID_systemID, parser_foundIgnorableWhitespace, parser_foundInternalEntityDeclarationWithName_value, parser_foundNotationDeclarationWithName_publicID_systemID, parser_foundProcessingInstructionWithTarget_data, parser_foundUnparsedEntityDeclarationWithName_publicID_systemID_notationName, parser_parseErrorOccurred, parser_resolveExternalEntityName_systemID, parser_validationErrorOccurred, parserDidEndDocument, parserDidStartDocument
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSOutlineViewNotifications
outlineViewColumnDidMove, outlineViewColumnDidResize, outlineViewItemDidCollapse, outlineViewItemDidExpand, outlineViewItemWillCollapse, outlineViewItemWillExpand, outlineViewSelectionDidChange, outlineViewSelectionIsChanging
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSPortDelegateMethods
handlePortMessage
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSFontManagerDelegate
fontManager_willIncludeFont
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSControlSubclassDelegate
control_didFailToFormatString_errorDescription, control_didFailToValidatePartialString_errorDescription, control_isValidObject, control_textShouldBeginEditing, control_textShouldEndEditing, control_textView_doCommandBySelector
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSScriptObjectSpecifiers
indicesOfObjectsByEvaluatingObjectSpecifier, objectSpecifier
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.WebPlugIn
objectForWebScript, webPlugInDestroy, webPlugInInitialize, webPlugInSetIsSelected, webPlugInStart, webPlugInStop
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.WebJavaPlugIn
webPlugInGetApplet
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSSpeechSynthesizerDelegate
speechSynthesizer_didEncounterErrorAtIndex_ofString_message, speechSynthesizer_didEncounterSyncMessage, speechSynthesizer_didFinishSpeaking, speechSynthesizer_willSpeakPhoneme
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.IMVideoDataSource
getOpenGLBufferContext_pixelFormat, getPixelBufferPixelFormat, getPixelBufferPixelFormat
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSURLClient
URL_resourceDataDidBecomeAvailable, URL_resourceDidFailLoadingWithReason, URLResourceDidCancelLoading, URLResourceDidFinishLoading
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSKeyedUnarchiverDelegate
unarchiver_cannotDecodeObjectOfClassName_originalClasses, unarchiver_didDecodeObject, unarchiver_willReplaceObject_withObject, unarchiverDidFinish, unarchiverWillFinish
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSScriptingComparisonMethods
scriptingBeginsWith, scriptingContains, scriptingEndsWith, scriptingIsEqualTo, scriptingIsGreaterThan, scriptingIsGreaterThanOrEqualTo, scriptingIsLessThan, scriptingIsLessThanOrEqualTo
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSColorPanelResponderMethod
changeColor
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSDraggingDestination
concludeDragOperation, concludeDragOperation, draggingEnded, draggingEnded, draggingEntered, draggingEntered, draggingExited, draggingExited, draggingUpdated, draggingUpdated, performDragOperation, performDragOperation, prepareForDragOperation, prepareForDragOperation, wantsPeriodicDraggingUpdates
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSScriptKeyValueCoding
coerceValue_forKey, insertValue_atIndex_inPropertyWithKey, insertValue_inPropertyWithKey, removeValueAtIndex_fromPropertyWithKey, replaceValueAtIndex_inPropertyWithKey_withValue, valueAtIndex_inPropertyWithKey, valueWithName_inPropertyWithKey, valueWithUniqueID_inPropertyWithKey
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSOutlineViewDataSource
outlineView_acceptDrop_item_childIndex, outlineView_acceptDrop_item_childIndex, outlineView_child_ofItem, outlineView_isItemExpandable, outlineView_itemForPersistentObject, outlineView_namesOfPromisedFilesDroppedAtDestination_forDraggedItems, outlineView_numberOfChildrenOfItem, outlineView_objectValueForTableColumn_byItem, outlineView_persistentObjectForItem, outlineView_setObjectValue_forTableColumn_byItem, outlineView_sortDescriptorsDidChange, outlineView_validateDrop_proposedItem_proposedChildIndex, outlineView_validateDrop_proposedItem_proposedChildIndex, outlineView_writeItems_toPasteboard
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSURLDownloadDelegate
download_decideDestinationWithSuggestedFilename, download_didCancelAuthenticationChallenge, download_didCreateDestination, download_didFailWithError, download_didReceiveAuthenticationChallenge, download_didReceiveDataOfLength, download_didReceiveResponse, download_shouldDecodeSourceDataOfMIMEType, download_willResumeWithResponse_fromByte, download_willSendRequest_redirectResponse, downloadDidBegin, downloadDidFinish
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSNibAwaking
awakeFromNib
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSImageDelegate
image_didLoadPartOfRepresentation_withValidRows, image_didLoadRepresentation_withStatus, image_didLoadRepresentationHeader, image_willLoadRepresentation
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSTextDelegate
textDidBeginEditing, textDidChange, textDidEndEditing, textShouldBeginEditing, textShouldEndEditing
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSKeyValueObserving
observeValueForKeyPath_ofObject_change_context
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.QTMovieViewDelegate
view_willDisplayImage
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSArchiverCallback
classForArchiver, replacementObjectForArchiver
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSComboBoxCellDataSource
comboBoxCell_completedString, comboBoxCell_indexOfItemWithStringValue, comboBoxCell_objectValueForItemAtIndex, numberOfItemsInComboBoxCell
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSFontManagerResponderMethod
changeFont
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSEditor
commitEditing, commitEditingWithDelegate_didCommitSelector_contextInfo, discardEditing
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSMenuValidation
validateMenuItem
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSMenuDelegate
menu_updateItem_atIndex_shouldCancel, menu_willHighlightItem, menuDidClose, menuHasKeyEquivalent_forEvent_target_action, menuNeedsUpdate, menuWillOpen, numberOfItemsInMenu
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSDistributedObjects
classForPortCoder, replacementObjectForPortCoder
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSAccessibility
accessibilityActionDescription, accessibilityActionNames, accessibilityAttributeNames, accessibilityAttributeValue_forParameter, accessibilityAttributeValue, accessibilityFocusedUIElement, accessibilityIsAttributeSettable, accessibilityIsIgnored, accessibilityParameterizedAttributeNames, accessibilityPerformAction, accessibilitySetValue_forAttribute
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSFileManagerFileOperationAdditions
fileManager_shouldCopyItemAtPath_toPath, fileManager_shouldLinkItemAtPath_toPath, fileManager_shouldMoveItemAtPath_toPath, fileManager_shouldProceedAfterError_copyingItemAtPath_toPath, fileManager_shouldProceedAfterError_linkingItemAtPath_toPath, fileManager_shouldProceedAfterError_movingItemAtPath_toPath, fileManager_shouldProceedAfterError_removingItemAtPath, fileManager_shouldRemoveItemAtPath
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSTextViewDelegate
textView_clickedOnLink_atIndex, textView_clickedOnLink, textView_doCommandBySelector, textView_menu_forEvent_atIndex, textView_shouldChangeTextInRanges_replacementStrings, textView_shouldChangeTypingAttributes_toAttributes, textView_willChangeSelectionFromCharacterRanges_toCharacterRanges, textView_willDisplayToolTip_forCharacterAtIndex, textView_writablePasteboardTypesForCell_atIndex, textView_writablePasteboardTypesForCell_atIndex, textView_writeCell_atIndex_toPasteboard_type, textView_writeCell_atIndex_toPasteboard_type, textViewDidChangeSelection, textViewDidChangeTypingAttributes, undoManagerForTextView
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSCopyLinkMoveHandler
fileManager_shouldProceedAfterError, fileManager_willProcessPath
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.SFCertificatePanelDelegate
certificatePanelShowHelp
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSSpellServerDelegate
spellServer_checkGrammarInString_language_details, spellServer_didForgetWord_inLanguage, spellServer_didLearnWord_inLanguage, spellServer_findMisspelledWordInString_language_wordCount_countOnly, spellServer_findMisspelledWordInString_language_wordCount_countOnly, spellServer_suggestGuessesForWord_inLanguage
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSTokenFieldCellDelegate
tokenFieldCell_completionsForSubstring_indexOfToken_indexOfSelectedItem, tokenFieldCell_completionsForSubstring_indexOfToken_indexOfSelectedItem, tokenFieldCell_displayStringForRepresentedObject, tokenFieldCell_editingStringForRepresentedObject, tokenFieldCell_hasMenuForRepresentedObject, tokenFieldCell_menuForRepresentedObject, tokenFieldCell_readFromPasteboard, tokenFieldCell_representedObjectForEditingString, tokenFieldCell_shouldAddObjects_atIndex, tokenFieldCell_styleForRepresentedObject, tokenFieldCell_writeRepresentedObjects_toPasteboard
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSWindowNotifications
windowDidBecomeKey, windowDidBecomeMain, windowDidChangeScreen, windowDidChangeScreenProfile, windowDidDeminiaturize, windowDidEndSheet, windowDidExpose, windowDidMiniaturize, windowDidMove, windowDidResignKey, windowDidResignMain, windowDidResize, windowDidUpdate, windowWillBeginSheet, windowWillClose, windowWillMiniaturize, windowWillMove
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSDrawerNotifications
drawerDidClose, drawerDidOpen, drawerWillClose, drawerWillOpen
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSKeyValueObserverRegistration
addObserver_forKeyPath_options_context, removeObserver_forKeyPath
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.WebPolicyDelegate
webView_decidePolicyForMIMEType_request_frame_decisionListener, webView_decidePolicyForMIMEType_request_frame_decisionListener, webView_decidePolicyForNavigationAction_request_frame_decisionListener, webView_decidePolicyForNavigationAction_request_frame_decisionListener, webView_decidePolicyForNewWindowAction_request_newFrameName_decisionListener, webView_decidePolicyForNewWindowAction_request_newFrameName_decisionListener, webView_unableToImplementPolicyWithError_frame
 
Methods inherited from interface org.rococoa.cocoa.foundation.categories.NSExceptionHandlerDelegate
exceptionHandler_shouldHandleException_mask, exceptionHandler_shouldLogException_mask
 

Constructor Detail

NSDocument

public NSDocument()
Method Detail

init

public abstract NSDocument init()
The designated initializer. It is invoked by each of NSDocument's other initialization methods.
You can override this method to perform initialization that must be done both when creating new empty documents and when opening existing documents. Your override must invoke super to initialize private NSDocument instance variables. It must never return nil. If an error can occur during object initialization, check for the error in an override of -initWithType:error:, -initWithContentsOfURL:ofType:error:, or -initForURL:withContentsOfURL:ofType:error:, because those methods can return NSErrors.
Original signature : -(id)init

Specified by:
init in class NSObject

create

public static NSDocument create()
Factory method

See Also:
init()

initWithType_error

public abstract NSDocument initWithType_error(NSString typeName,
                                              PointerByReference outError)
Initialize a new empty document of a specified type, and return it if successful. If not successful, return nil after setting *outError to an NSError that encapsulates the reason why the document could not be initialized. The default implementation of this method just invokes [self init] and [self setFileType:typeName].
You can override this method to perform initialization that must be done when creating new documents but should not be done when opening existing documents. Your override should typically invoke super, or at least it must invoke -init, NSDocument's designated initializer, to initialize NSDocument's private instance variables.
Original signature : -(id)initWithType:(NSString*) error:(NSError**)


createWithType_error

public static NSDocument createWithType_error(NSString typeName,
                                              PointerByReference outError)
Factory method

See Also:
initWithType_error(org.rococoa.cocoa.foundation.NSString, com.sun.jna.ptr.PointerByReference)

initWithContentsOfURL_ofType_error

public abstract NSDocument initWithContentsOfURL_ofType_error(NSURL absoluteURL,
                                                              NSString typeName,
                                                              PointerByReference outError)
Initialize a document located by a URL, of a specified type, and return it if successful. If not successful, return nil after setting *outError to an NSError that encapsulates the reason why the document could not be initialized. The default implementation of this method invokes [self init], [self readFromURL:absoluteURL ofType:typeName error:outError], [self setFileURL:absoluteURL], [self setFileType:typeName], and [self setFileModificationDate:theModificationDate].
For backward binary compatibility with Mac OS 10.3 and earlier, the default implementation of this method instead invokes [self initWithContentsOfFile:absoluteURL ofType:typeName] if -initWithContentsOfFile:ofType: is overridden and the URL uses the "file:" scheme. It still invokes [self setFileModificationDate:theModificationDate] in this situation.
Original signature : -(id)initWithContentsOfURL:(NSURL*) ofType:(NSString*) error:(NSError**)


createWithContentsOfURL_ofType_error

public static NSDocument createWithContentsOfURL_ofType_error(NSURL absoluteURL,
                                                              NSString typeName,
                                                              PointerByReference outError)
Factory method

See Also:
initWithContentsOfURL_ofType_error(org.rococoa.cocoa.foundation.NSURL, org.rococoa.cocoa.foundation.NSString, com.sun.jna.ptr.PointerByReference)

initForURL_withContentsOfURL_ofType_error

public abstract NSDocument initForURL_withContentsOfURL_ofType_error(NSURL absoluteDocumentURL,
                                                                     NSURL absoluteDocumentContentsURL,
                                                                     NSString typeName,
                                                                     PointerByReference outError)
Initialize a document located by a URL, of a specified type, but by reading the contents for the document from another URL, and return it if successful. If not successful, return nil after setting *outError to an NSError that encapsulates the reason why the document could not be initialized. The default implementation of this method invokes [self readFromURL:absoluteDocumentContentsURL ofType:typeName error:outError], [self setFileURL:absoluteURL], [self setAutosavedContentsFileURL:absoluteDocumentContentsURL], [self setFileType:typeName], and [self setFileModificationDate:theModificationDate]. It also invokes [self updateChangeCount:NSChangeReadOtherContents] if the two URLs aren't identical, so that -isDocumentEdited will always return YES until the user saves or reverts the document.
To ease the adoption of the autosaving feature introduced in Mac OS 10.4, the default implementation of this method invokes [self initWithContentsOfFile:[absoluteDocumentContentsURL path] ofType:typeName] if -initWithContentsOfFile:ofType: is overridden and the URL uses the "file:" scheme. It still invokes [self setFileModificationDate:theModificationDate] and [self updateChangeCount:NSChangeReadOtherContents] in this situation. It still also invokes [self setFileURL:absoluteURL], to overwrite the incorrect invocation of -setFileName: that the override of -initWithContentsOfFile:ofType: likely did.
absoluteDocumentURL will be nil if the initializing is being done as part of the reopening of an autosaved document when the autosaved document had never been saved in the first place.
Original signature : -(id)initForURL:(NSURL*) withContentsOfURL:(NSURL*) ofType:(NSString*) error:(NSError**)


createForURL_withContentsOfURL_ofType_error

public static NSDocument createForURL_withContentsOfURL_ofType_error(NSURL absoluteDocumentURL,
                                                                     NSURL absoluteDocumentContentsURL,
                                                                     NSString typeName,
                                                                     PointerByReference outError)
Factory method

See Also:
initForURL_withContentsOfURL_ofType_error(org.rococoa.cocoa.foundation.NSURL, org.rococoa.cocoa.foundation.NSURL, org.rococoa.cocoa.foundation.NSString, com.sun.jna.ptr.PointerByReference)

setFileType

public abstract void setFileType(NSString typeName)
The name of the document's format. The set method isn't for _changing_ the document's format, it's just for initially recording the document's format during opening or saving.
Original signature : -(void)setFileType:(NSString*)


fileType

public abstract NSString fileType()

setFileURL

public abstract void setFileURL(NSURL absoluteURL)
The location of the document's on-disk representation. The set method doesn't actually rename the document, it's just for recording the document's location during initial opening or saving. The default implementation of -setFileURL: just records the URL so that the default implementation of -fileURL can return it. The default implementation of -fileURL returns whatever was stored by a previous invocation of the default implementation of -setFileURL:.
For backward binary compatibility with Mac OS 10.3 and earlier, the default implementation of -setFileURL: instead invokes [self setFileName:[absoluteURL path]] if -setFileName: is overridden and the URL is nil or uses the "file:" scheme. Likewise, the default implementation of -fileURL instead invokes -[self fileName] and returns the result as a URL if -fileName is overridden.
Original signature : -(void)setFileURL:(NSURL*)


fileURL

public abstract NSURL fileURL()

setFileModificationDate

public abstract void setFileModificationDate(NSDate modificationDate)
The last known modification date of the document's on-disk representation.
Original signature : -(void)setFileModificationDate:(NSDate*)


fileModificationDate

public abstract NSDate fileModificationDate()

revertDocumentToSaved

public abstract void revertDocumentToSaved(org.rococoa.ID sender)
The action of the File menu's Revert to Saved item in a document-based application. The default implementation of this method presents a panel giving the user the opportunity to cancel the operation and, and if the user chooses to continue, makes sure that any editor registered using Cocoa Bindings' NSEditorRegistration informal protocol has discarded its changes and then invokes [self revertToContentsOfURL:[self url] ofType:[self fileType] error:outError]. If that returns NO, it presents the error to the user in an document-modal alert panel.
Original signature : -(void)revertDocumentToSaved:(id)


revertToContentsOfURL_ofType_error

public abstract boolean revertToContentsOfURL_ofType_error(NSURL absoluteURL,
                                                           NSString typeName,
                                                           PointerByReference outError)
Discard all unsaved document modifications and replace the document's contents by reading a file or file package located by a URL, of a specified type, and return YES if successful. If not successful, return NO after setting *outError to an NSError that encapsulates the reason why the document could not be reverted. The default implementation of this method invokes [self readFromURL:absoluteURL ofType:typeName error:outError], [self setFileModificationDate:theModificationDate], [self updateChangeCount:NSChangeCleared], and, if the document has an undo manager, [[self undoManager] removeAllActions]. It also deletes autosaved contents files when they have become obsolete.
For backward binary compatibility with Mac OS 10.3 and earlier, the default implementation of this method instead invokes [self revertToSavedFromFile:[absoluteURL path] ofType:typeName] if -revertToSavedFromFile:ofType: is overridden and the URL uses the "file:" scheme. It still invokes [self updateChangeCount:NSChangeCleared] and [[self undoManager] removeAllActions] in this situation (because the default implementation of -revertToSavedFromFile:ofType: does not; -revertDocumentToSaved: used to, but doesn't any longer).
Original signature : -(BOOL)revertToContentsOfURL:(NSURL*) ofType:(NSString*) error:(NSError**)


readFromURL_ofType_error

public abstract boolean readFromURL_ofType_error(NSURL absoluteURL,
                                                 NSString typeName,
                                                 PointerByReference outError)
Set the contents of this document by reading from a file or file package located by a URL, of a specified type, and return YES if successful. If not successful, return NO after setting *outError to an NSError that encapsulates the reason why the document could not be read. The default implementation of this method just creates an NSFileWrapper and invokes [self readFromFileWrapper:theFileWrapper ofType:typeName error:outError].
For backward binary compatibility with Mac OS 10.3 and earlier, the default implementation of this method instead invokes [self readFromFile:[absoluteURL path] ofType:typeName] if -readFromFile:ofType: is overridden and the URL uses the "file:" scheme.
Original signature : -(BOOL)readFromURL:(NSURL*) ofType:(NSString*) error:(NSError**)


readFromFileWrapper_ofType_error

public abstract boolean readFromFileWrapper_ofType_error(NSFileWrapper fileWrapper,
                                                         NSString typeName,
                                                         PointerByReference outError)
Set the contents of this document by reading from a file wrapper of a specified type, and return YES if successful. If not successful, return NO after setting *outError to an NSError that encapsulates the reason why the document could not be read. The default implementation of this method invokes [self readFromData:[fileWrapper regularFileContents] ofType:typeName error:outError].
For backward binary compatibility with Mac OS 10.3 and earlier, the default implementation of this method instead invokes [self loadFileWrapperRepresentation:fileWrapper ofType:typeName] if -loadFileWrapperRepresentation:ofType: is overridden.
Original signature : -(BOOL)readFromFileWrapper:(NSFileWrapper*) ofType:(NSString*) error:(NSError**)


readFromData_ofType_error

public abstract boolean readFromData_ofType_error(NSData data,
                                                  NSString typeName,
                                                  PointerByReference outError)
Set the contents of this document by reading from data of a specified type, and return YES if successful. If not successful, return NO after setting *outError to an NSError that encapsulates the reason why the document could not be read. The default implementation of this method throws an exception because at least one of these three reading methods, or every method that may invoke -readFromURL:ofType:error: (!), must be overridden.
For backward binary compatibility with Mac OS 10.3 and earlier, the default implementation of this method instead invokes [self loadDataRepresentation:data ofType:typeName] if -loadDataRepresentation:ofType: is overridden.
Original signature : -(BOOL)readFromData:(NSData*) ofType:(NSString*) error:(NSError**)


writeToURL_ofType_error

public abstract boolean writeToURL_ofType_error(NSURL absoluteURL,
                                                NSString typeName,
                                                PointerByReference outError)
Write the contents of this document to a file or file package located by a URL, formatted to a specified type, and return YES if successful. If not successful, return NO after setting *outError to an NSError that encapsulates the reason why the document could not be written. The default implementation of this method just invokes [self fileWrapperOfType:typeName error:outError] and writes the returned file wrapper to disk.
For backward binary compatibility with Mac OS 10.3 and earlier, the default implementation of this method instead invokes [self writeToFile:[absoluteURL path] ofType:typeName] if -writeToFile:ofType: is overridden and the URL uses the "file:" scheme.
Original signature : -(BOOL)writeToURL:(NSURL*) ofType:(NSString*) error:(NSError**)


fileWrapperOfType_error

public abstract NSFileWrapper fileWrapperOfType_error(NSString typeName,
                                                      PointerByReference outError)
Create and return a file wrapper that contains the contents of this document, formatted to a specified type, or return nil after setting *outError to an NSError that encapsulates the reason why the file wrapper could not be created. The default implementation of this method just invokes [self dataOfType:typeName], makes a file wrapper for that data, and returns the file wrapper.
For backward binary compatibility with Mac OS 10.3 and earlier, the default implementation of this method instead invokes [self fileWrapperRepresentationOfType:typeName] if -fileWrapperRepresentationOfType: is overridden.
Original signature : -(NSFileWrapper*)fileWrapperOfType:(NSString*) error:(NSError**)


dataOfType_error

public abstract NSData dataOfType_error(NSString typeName,
                                        PointerByReference outError)
Create and return a data object that contains the contents of this document, formatted to a specified type, or return nil after setting *outError to an NSError that encapsulates the reason why the data object could not be created. The default implementation of this method throws an exception because at least one of these three writing methods, or -writeToURL:ofType:saveOperation:originalContentsURL:error:, must be overridden.
For backward binary compatibility with Mac OS 10.3 and earlier, the default implementation of this method instead invokes [self dataRepresentationOfType:typeName] if -dataRepresentationOfType: is overridden.
Original signature : -(NSData*)dataOfType:(NSString*) error:(NSError**)


writeSafelyToURL_ofType_forSaveOperation_error

public abstract boolean writeSafelyToURL_ofType_forSaveOperation_error(NSURL absoluteURL,
                                                                       NSString typeName,
                                                                       int saveOperation,
                                                                       PointerByReference outError)
Write the contents of the document to a file or file package located by a URL, formatted to a specified type, for a particular kind of save operation, and return YES if successful. If not successful, return NO after setting *outError to an NSError that encapsulates the reason why the document could not be written. The default implementation of this method:
1) Either creates a temporary directory in which the document writing should be done, or renames the old on-disk revision of the document, depending on what sort of save operation is being done, whether or not there's already a copy of the document on disk, and the capabilities of the file system to which writing is being done. The details of this are subject to change.
2) Invokes -writeToURL:ofType:forSaveOperation:originalContentsURL:error:.
3) Invokes -fileAttributesToWriteToURL:ofType:forSaveOperation:originalContentsURL: and writes the returned attributes, if any, to the file. Some attributes from the old on-disk revision of the document may be copied at the same time, if applicable.
4) Moves the just-written file to its final location, or deletes the old on-disk revision of the document, and deletes any temporary directories, depending on the same factors listed for step 1.
For NSSaveOperation the default implementation of this method invokes -keepBackupFile to determine whether or not the old on-disk revision of the document, if there was one, should be preserved after being renamed.
For backward binary compatibility with Mac OS 10.3 and earlier, the default implementation of this method instead invokes [self writeWithBackupToFile:[absoluteURL path] ofType:typeName saveOperation:aSaveOperation] if -writeWithBackupToFile:ofType:saveOperation: is overridden and the URL uses the "file:" scheme. The save operation used in this case will never be NSAutosaveOperation; NSSaveToOperation will be used instead.
This method is responsible for doing document writing in a way that minimizes the danger of leaving the disk to which writing is being done in an inconsistent state in the event of an application crash, system crash, hardware failure, power outage, etc. Because it does several different things, and because the things are likely to change in future releases of Mac OS X, it's probably not a good idea to override this method without invoking super (the same was true of -writeWithBackupToFile:ofType:saveOperation:).
Original signature : -(BOOL)writeSafelyToURL:(NSURL*) ofType:(NSString*) forSaveOperation:(NSSaveOperationType) error:(NSError**)

Parameters:
saveOperation - @see org.rococoa.cocoa.appkit.AppKitLibrary#NSSaveOperationType

writeToURL_ofType_forSaveOperation_originalContentsURL_error

public abstract boolean writeToURL_ofType_forSaveOperation_originalContentsURL_error(NSURL absoluteURL,
                                                                                     NSString typeName,
                                                                                     int saveOperation,
                                                                                     NSURL absoluteOriginalContentsURL,
                                                                                     PointerByReference outError)
Write the contents of the document to a file or file package located by a URL, formatted to a specified type, for a particular kind of save operation, and return YES if successful. If not successful, return NO after setting *outError to an NSError that encapsulates the reason why the document could not be written. The default implementation of this method merely invokes [self writeToURL:absoluteURL ofType:typeName error:outError]. You can override this method instead of one of the methods in the "Simple Reading and Writing" section above if your document writing machinery needs access to the on-disk representation of the document revision that is about to be overwritten. absoluteURL will often not be the same value as [self fileURL]. Other times it will not be the same as the URL for the final save destination. Likewise, absoluteOriginalContentsURL will often not be the same value as [self fileURL], though it will be nil for documents that have never been saved. It will point to nothing if the document's on-disk representation has been deleted.
For backward binary compatibility with Mac OS 10.3 and earlier, the default implementation of this method instead invokes [self writeToFile:[absoluteURL path] ofType:typeName originalFile:[absoluteOriginalContentsURL path] saveOperation:aSaveOperation] if -writeToFile:ofType:originalFile:saveOperation: is overridden and both URLs use the "file:" scheme. The save operation used in this case will never be NSAutosaveOperation; NSSaveToOperation will be used instead.
Original signature : -(BOOL)writeToURL:(NSURL*) ofType:(NSString*) forSaveOperation:(NSSaveOperationType) originalContentsURL:(NSURL*) error:(NSError**)

Parameters:
saveOperation - @see org.rococoa.cocoa.appkit.AppKitLibrary#NSSaveOperationType

fileAttributesToWriteToURL_ofType_forSaveOperation_originalContentsURL_error

public abstract NSDictionary fileAttributesToWriteToURL_ofType_forSaveOperation_originalContentsURL_error(NSURL absoluteURL,
                                                                                                          NSString typeName,
                                                                                                          int saveOperation,
                                                                                                          NSURL absoluteOriginalContentsURL,
                                                                                                          PointerByReference outError)
Given that a file is being saved, return the attributes that should be written to a file or file package located by a URL, formatted to a specified type, for a particular kind of save operation. If not successful, return nil after setting *outError to an NSError that encapsulates the reason why attributes could not be returned. The set of valid file attributes is a subset of those understood by the NSFileManager class. The default implementation of this method returns a dictionary with NSFileHFSCreatorCode and NSFileHFSTypeCode entries that have a value of 0 for NSSaveOperation, or a dictionary with an appropriate NSFileExtensionHidden entry for NSSaveAsOperation and NSSaveToOperation. You can override this method to customize the attributes that are written to document files.
For backward binary compatibility with Mac OS 10.3 and earlier, the default implementation of this method instead invokes [self fileAttributesToWriteToFile:[absoluteURL path] ofType:typeName saveOperation:aSaveOperation] if -fileAttributesToWriteToFile:ofType:saveOperation: is overridden and the URL uses the "file:" scheme. The save operation used in this case will never be NSAutosaveOperation; NSSaveToOperation will be used instead.
-[NSDocument writeSafelyToURL:ofType:forSaveOperation:error:] automatically copies important attributes like file permissions, creation date, and Finder info from the old on-disk revision of a document to the new one during NSSaveOperations. This method is meant to be used just for attributes that need to be written for the first time, for NSSaveAsOperations and NSSaveToOperations. Actually, absoluteURL and absoluteOriginalContentsURL are passed in just for completeness; NSDocument's default implementation for instance doesn't even need to use them.
Original signature : -(NSDictionary*)fileAttributesToWriteToURL:(NSURL*) ofType:(NSString*) forSaveOperation:(NSSaveOperationType) originalContentsURL:(NSURL*) error:(NSError**)

Parameters:
saveOperation - @see org.rococoa.cocoa.appkit.AppKitLibrary#NSSaveOperationType

keepBackupFile

public abstract boolean keepBackupFile()
Return YES if the old on-disk revision of a document that is being overwritten should be preserved during a NSSaveOperation, NO otherwise. The default implementation of this method returns NO.
Original signature : -(BOOL)keepBackupFile


saveDocument

public abstract void saveDocument(org.rococoa.ID sender)
The action of the File menu's Save item in a document-based application. The default implementation of this method merely invokes [self saveDocumentWithDelegate:nil didSaveSelector:NULL contextInfo:NULL].
Original signature : -(void)saveDocument:(id)


saveDocumentAs

public abstract void saveDocumentAs(org.rococoa.ID sender)
The action of the File menu's Save As... item in a document-based application. The default implementation of this method merely invokes [self runModalSavePanelForSaveOperation:NSSaveAsOperation delegate:nil didSaveSelector:NULL contextInfo:NULL].
Original signature : -(void)saveDocumentAs:(id)


saveDocumentTo

public abstract void saveDocumentTo(org.rococoa.ID sender)
The action of the File menu's Export... item in a document-based application (actually, the menu item goes by different names in different applications; check the Human Interface Guidelines). The default implementation of this method merely invokes [self runModalSavePanelForSaveOperation:NSSaveToOperation delegate:nil didSaveSelector:NULL contextInfo:NULL].
Original signature : -(void)saveDocumentTo:(id)


saveDocumentWithDelegate_didSaveSelector_contextInfo

public abstract void saveDocumentWithDelegate_didSaveSelector_contextInfo(org.rococoa.ID delegate,
                                                                          org.rococoa.Selector didSaveSelector,
                                                                          Pointer contextInfo)
If an NSSaveOperation can be performed without further user intervention (at the very least, neither -fileURL nor -fileType return nil), then save the document. Otherwise, present a save panel to the user and then save the document if the user OKs the panel. When saving is completed or has been cancelled, send the message selected by didSaveSelector to the delegate, with the contextInfo as the last argument. The method selected by didSaveSelector must have the same signature as:
- (void)document:(NSDocument *)document didSave:(BOOL)didSaveSuccessfully contextInfo:(void *)contextInfo;
The default implementation of this method first makes sure that any editor registered using Cocoa Bindings' NSEditorRegistration informal protocol has committed its changes, then invokes [self runModalSavePanelForSaveOperation:NSSaveOperation delegate:delegate didSaveSelector:didSaveSelector contextInfo:inContextInfo] right away if a save panel must be presented. Otherwise, it may present a panel asking the user to make a decision for any of the following situations:
1) The document's file or file package was modified by something other than the current application since it was opened or most recently saved.
2) The document's file or file package was moved or renamed since it was opened or most recently saved.
3) The document's file or file package was deleted or trashed since it was opened or most recently saved.
The list of conditions for which NSDocument checks is subject to change. Regardless, the default implementation of this method always invokes either -runModalSavePanelForSaveOperation:delegate:didSaveSelector:contextInfo: or -saveToURL:ofType:forSaveOperation:delegate:didSaveSelector:contextInfo: unless the user cancels one of the panels it presents.
Original signature : -(void)saveDocumentWithDelegate:(id) didSaveSelector:(SEL) contextInfo:(void*)


runModalSavePanelForSaveOperation_delegate_didSaveSelector_contextInfo

public abstract void runModalSavePanelForSaveOperation_delegate_didSaveSelector_contextInfo(int saveOperation,
                                                                                            org.rococoa.ID delegate,
                                                                                            org.rococoa.Selector didSaveSelector,
                                                                                            Pointer contextInfo)
Present a save panel to the user, then try to save the document if the user OKs the panel. When saving is completed, regardless of success or failure, or has been cancelled, send the message selected by didSaveSelector to the delegate, with the contextInfo as the last argument. The method selected by didSaveSelector must have the same signature as:
- (void)document:(NSDocument *)document didSave:(BOOL)didSaveSuccessfully contextInfo:(void *)contextInfo;
The default implementation of this method first makes sure that any editor registered using Cocoa Bindings' NSEditorRegistration informal protocol has committed its changes, then creates a save panel, adds a standard "file format" accessory view if there is more than one file type for the user to choose from and [self shouldRunSavePanelWithAccessoryView] returns YES, sets various attributes of the panel, invokes [self prepareSavePanel:theSavePanel] to provide an opportunity for customization, then presents the panel. If the user OKs the panel -saveToURL:ofType:forSaveOperation:delegate:didSaveSelector:contextInfo: is invoked.
For backward binary compatibility with Mac OS 10.3 and earlier, the default implementation of this method instead invokes [self saveToFile:nil saveOperation:saveOperation delegate:delegate didSaveSelector:contextInfo:] if -saveToFile:saveOperation:delegate:didSaveSelector:contextInfo: is overridden, even if the user cancels the panel (because that's what 10.3 did).
Original signature : -(void)runModalSavePanelForSaveOperation:(NSSaveOperationType) delegate:(id) didSaveSelector:(SEL) contextInfo:(void*)

Parameters:
saveOperation - @see org.rococoa.cocoa.appkit.AppKitLibrary#NSSaveOperationType

shouldRunSavePanelWithAccessoryView

public abstract boolean shouldRunSavePanelWithAccessoryView()
Return YES if -runModalSavePanelForSaveOperation:delegate:didSaveSelector:contextInfo: should add NSDocument's standard file format accessory view to the save panel, NO otherwise. The default implementation of this method returns YES. You can override this method to prevent NSDocument from adding an accessory view to the save panel so that your application can add its own when -prepareSavePanel is invoked.
Original signature : -(BOOL)shouldRunSavePanelWithAccessoryView


prepareSavePanel

public abstract boolean prepareSavePanel(NSSavePanel savePanel)
Given the save panel that -runModalSavePanelForSaveOperation:delegate:didSaveSelector:contextInfo: is about to present to the user, make any final changes before it is presented, and return YES for success. Return NO for failure, to cancel the save operation. The default implementation of this method just returns YES.
Original signature : -(BOOL)prepareSavePanel:(NSSavePanel*)


fileNameExtensionWasHiddenInLastRunSavePanel

public abstract boolean fileNameExtensionWasHiddenInLastRunSavePanel()
Return YES if a save panel has been presented by this document and the user chose to hide the name extension of the file that was selected in that save panel, NO otherwise.
Original signature : -(BOOL)fileNameExtensionWasHiddenInLastRunSavePanel


fileTypeFromLastRunSavePanel

public abstract NSString fileTypeFromLastRunSavePanel()
If a save panel has been presented by this document, and a choice of file type was presented in that panel, return the name of the file type that the user chose.
Original signature : -(NSString*)fileTypeFromLastRunSavePanel


saveToURL_ofType_forSaveOperation_delegate_didSaveSelector_contextInfo

public abstract void saveToURL_ofType_forSaveOperation_delegate_didSaveSelector_contextInfo(NSURL absoluteURL,
                                                                                            NSString typeName,
                                                                                            int saveOperation,
                                                                                            org.rococoa.ID delegate,
                                                                                            org.rococoa.Selector didSaveSelector,
                                                                                            Pointer contextInfo)
Save the contents of the document to a file or file package located by a URL, formatted to a specified type, for a particular kind of save operation. When saving is completed, regardless of success or failure, send the message selected by didSaveSelector to the delegate, with the contextInfo as the last argument. The method selected by didSaveSelector must have the same signature as:
- (void)document:(NSDocument *)document didSave:(BOOL)didSaveSuccessfully contextInfo:(void *)contextInfo;
The default implementation of this method first makes sure that any editor registered using Cocoa Bindings' NSEditorRegistration informal protocol has committed its changes (except for autosave operations), then invokes [self saveToURL:absoluteURL ofType:typeName forSaveOperation:saveOperation error:&anError] and, if NO is returned, presents the error to the user in a document-modal panel before messaging the delegate.
Original signature : -(void)saveToURL:(NSURL*) ofType:(NSString*) forSaveOperation:(NSSaveOperationType) delegate:(id) didSaveSelector:(SEL) contextInfo:(void*)

Parameters:
saveOperation - @see org.rococoa.cocoa.appkit.AppKitLibrary#NSSaveOperationType

saveToURL_ofType_forSaveOperation_error

public abstract boolean saveToURL_ofType_forSaveOperation_error(NSURL absoluteURL,
                                                                NSString typeName,
                                                                int saveOperation,
                                                                PointerByReference outError)
Save the contents of the document to a file or file package located by a URL, formatted to a specified type, for a particular kind of save operation, and return YES if successful. If not successful, return NO after setting *outError to an NSError that encapsulates the reason why the document could not be save.
The default implementation of this method invokes [self writeSafelyToURL:absoluteURL ofType:typeName forSaveOperation:saveOperation error:outError]. If that returns YES, it also invokes some combination of -setFileModificationDate:, -setFileType:, -setFileURL:, -updateChangeCount:, and -setAutosavedContentsFileURL:, as appropriate for the kind of save operation. It also updates information that -saveDocumentWithDelegate:didSaveSelector:contextInfo: uses to check for modification, renaming, moving, deleting, and trashing of open documents, and deletes autosaved contents files when they have become obsolete. Because this method does several different things, and because the things are likely to change in future releases of Mac OS X, it's probably not a good idea to override this method without invoking super.
Original signature : -(BOOL)saveToURL:(NSURL*) ofType:(NSString*) forSaveOperation:(NSSaveOperationType) error:(NSError**)

Parameters:
saveOperation - @see org.rococoa.cocoa.appkit.AppKitLibrary#NSSaveOperationType

hasUnautosavedChanges

public abstract boolean hasUnautosavedChanges()
Return YES if the document has changes that have not been autosaved, NO otherwise, as determined by the history of previous invocations of -updateChangeCount:. The default implementation of this method returns NO immediately after invocation of -updateChangeCount:NSChangeCleared or -updateChangeCount:NSChangeAutosaved. It will then return YES if subsequent invocations of -updateChangeCount: have recorded a situation in which the document has changes that have not been autosaved. (-updateChangeCount:NSChangeReadOtherContents has no effect on what the default implementation of this method returns.)
Original signature : -(BOOL)hasUnautosavedChanges


autosaveDocumentWithDelegate_didAutosaveSelector_contextInfo

public abstract void autosaveDocumentWithDelegate_didAutosaveSelector_contextInfo(org.rococoa.ID delegate,
                                                                                  org.rococoa.Selector didAutosaveSelector,
                                                                                  Pointer contextInfo)
Autosave the document's contents at an appropriate location, and then send the message selected by didAutosaveSelector to the delegate, with the contextInfo as the last argument. The method selected by didAutosaveSelector must have the same signature as:
- (void)document:(NSDocument *)document didAutosave:(BOOL)didAutosaveSuccessfully contextInfo:(void *)contextInfo;
If any error occurs while autosaving, it must be reported to the user, typically in a document-modal alert panel, before the delegate is messaged with succeeded:NO.
The default implementation of this method figures out where the autosaved document contents should go and invokes [self saveToURL:autosavedDocumentContentsURL ofType:[self autosavingFileType] forSaveOperation:NSAutosaveOperation delegate:inDelegate didSaveSelector:inDidAutosaveSelector contextInfo:inContextInfo].
Original signature : -(void)autosaveDocumentWithDelegate:(id) didAutosaveSelector:(SEL) contextInfo:(void*)


autosavingFileType

public abstract NSString autosavingFileType()
Return the document type that should be used for an autosave operation. The default implementation just returns [self fileType]. You can override this method and return nil in your override to completely disable autosaving of individual documents (NSDocumentController will not send -autosaveDocumentWithDelegate:didAutosaveSelector:contextInfo: to a document that has no autosaving file type.) You can also override it if your application defines a document type that is specifically designed for autosaving. For example, one that efficiently represents document contents _changes_ instead of complete document contents.
Original signature : -(NSString*)autosavingFileType


setAutosavedContentsFileURL

public abstract void setAutosavedContentsFileURL(NSURL absoluteURL)
The location of the most recently autosaved document contents. The default implementation of -setAutosavedContentsFileURL: records the URL and notifies the shared document controller that this document should be autoreopened if the application is quit or crashes before the document is saved. The default implementation of -autosavedContentsFileURL just returns whatever was stored by a previous invocation of the default implementation of -setAutosavedContentsFileURL:.
Original signature : -(void)setAutosavedContentsFileURL:(NSURL*)


autosavedContentsFileURL

public abstract NSURL autosavedContentsFileURL()

canCloseDocumentWithDelegate_shouldCloseSelector_contextInfo

public abstract void canCloseDocumentWithDelegate_shouldCloseSelector_contextInfo(org.rococoa.ID delegate,
                                                                                  org.rococoa.Selector shouldCloseSelector,
                                                                                  Pointer contextInfo)
If the document is modified, present a panel to the user informing them that the document is modified and asking if it should be saved. If the user indicates that it should be, then try to save it. When saving is completed, regardless of success or failure, or has been rejected one way or another by the user, send the message selected by shouldCloseSelector to the delegate, with the contextInfo as the last argument. If the document is not modified then just send the mesage selected by shouldCloseSelector right away. The method selected by shouldCloseSelector must have the same signature as:
- (void)document:(NSDocument *)document shouldClose:(BOOL)shouldClose contextInfo:(void *)contextInfo;
The default implementation of this method presents a panel giving the user the choice of canceling, discarding changes, or saving. The shouldClose value passed to the delegate will be YES if the document was not modified in the first place, or the user chose to discard modifications, or chose to save and the saving was successful. NO will be passed if the user chose to cancel the operation or saving was unsuccessful. Because -saveDocumentWithDelegate:didSaveSelector:contextInfo: is used, an alert panel will be presented before the delegate is messaged if saving is attempted but does not succeed.
Original signature : -(void)canCloseDocumentWithDelegate:(id) shouldCloseSelector:(SEL) contextInfo:(void*)


close

public abstract void close()
Close the document, discarding any as-yet-unsaved modifications. The default implementation of this method first makes sure that any editor registered using Cocoa Bindings' NSEditorRegistration informal protocol has discarded its changes, then sends each of the document's window controllers a -close message and then invokes [[NSDocumentController sharedDocumentController] removeDocument:self]. This is typically the method to use to close open documents (instead of just causing them to be deallocated by some other means). Often it's appropriate to use -canCloseDocumentWithDelegate:shouldCloseSelector:contextInfo: first to give the user a chance to save modifications.
Original signature : -(void)close


runPageLayout

public abstract void runPageLayout(org.rococoa.ID sender)
The action of the File menu's Page Setup... item in a document-based application. The default implementation of this method invokes [self printInfo], makes a copy of the print info object, and invokes [self runModalPageLayoutWithPrintInfo:printInfoCopy delegate:aPrivateDelegate didRunSelector:aSelectorForAPrivateMethod contextInfo:privateContextInfo]. If the user OKs the page layout panel, [self shouldChangePrintInfo:printInfoCopy] is invoked. If that returns YES, [self setPrintInfo:printInfoCopy] is invoked.
Original signature : -(void)runPageLayout:(id)


runModalPageLayoutWithPrintInfo_delegate_didRunSelector_contextInfo

public abstract void runModalPageLayoutWithPrintInfo_delegate_didRunSelector_contextInfo(NSPrintInfo printInfo,
                                                                                         org.rococoa.ID delegate,
                                                                                         org.rococoa.Selector didRunSelector,
                                                                                         Pointer contextInfo)
Present a page layout panel to the user. When the page layout panel has been dismissed, regardless of whether the user cancelled or OK'ed it, send the message selected by didRunSelector to the delegate, with the contextInfo as the last argument. The method selected by didRunSelector must have the same signature as:
- (void)document:(NSDocument *)document didRunPageLayoutAndUserAccepted:(BOOL)userAccepted contextInfo:(void *)contextInfo;
The default implementation of this method creates a page layout panel, invokes [self preparePageLayout:thePageLayoutPanel] to provide an opportunity for customization, then presents the panel.
Original signature : -(void)runModalPageLayoutWithPrintInfo:(NSPrintInfo*) delegate:(id) didRunSelector:(SEL) contextInfo:(void*)


preparePageLayout

public abstract boolean preparePageLayout(NSPageLayout pageLayout)
Given the page layout panel that -runModalPageLayoutWithPrintInfo:delegate:didRunSelector:contextInfo: is about to present to the user, make any final changes before it is presented, and return YES for success. Return NO for failure, to cancel the presentation of the panel. The default implementation of this method just returns YES.
Original signature : -(BOOL)preparePageLayout:(NSPageLayout*)


shouldChangePrintInfo

public abstract boolean shouldChangePrintInfo(NSPrintInfo newPrintInfo)
Given a print info object that is the result of the user OK'ing the page layout panel presented by -runPageLayout:, return YES if the print info should be set in the document, NO otherwise.
Original signature : -(BOOL)shouldChangePrintInfo:(NSPrintInfo*)


setPrintInfo

public abstract void setPrintInfo(NSPrintInfo printInfo)
The print info for the document. The default implementation of -setPrintInfo: records the change as an undoable change, if the document has an undo manager. If the document has no undo manager, it invokes [self updateChangeCount:NSChangeDone].
Original signature : -(void)setPrintInfo:(NSPrintInfo*)


printInfo

public abstract NSPrintInfo printInfo()

printDocument

public abstract void printDocument(org.rococoa.ID sender)
The action of the File menu's Print... item item in a document-based application. The default implementation of this method merely invokes [self printDocumentWithSettings:[NSDictionary dictionary] showPrintPanel:YES delegate:nil didPrintSelector:NULL contextInfo:NULL].
Original signature : -(void)printDocument:(id)


printDocumentWithSettings_showPrintPanel_delegate_didPrintSelector_contextInfo

public abstract void printDocumentWithSettings_showPrintPanel_delegate_didPrintSelector_contextInfo(NSDictionary printSettings,
                                                                                                    boolean showPrintPanel,
                                                                                                    org.rococoa.ID delegate,
                                                                                                    org.rococoa.Selector didPrintSelector,
                                                                                                    Pointer contextInfo)
Print the document. If showing of the print panel is specified, present it first, and print only if the user OKs the panel. The NSPrintInfo attributes in the passed-in printSettings dictionary should be added to a copy of the document's print info, and the resulting print info should be used for the operation. When printing is completed or has been cancelled, send the message selected by didPrintSelector to the delegate, with the contextInfo as the last argument. The method selected by didPrintSelector must have the same signature as:
- (void)document:(NSDocument *)document didPrint:(BOOL)didPrintSuccessfully contextInfo:(void *)contextInfo;
The default implementation of this method first makes sure that any editor registered using Cocoa Bindings' NSEditorRegistration informal protocol has committed its changes, then invokes [self printOperationWithSettings:printSettings error:&anError]. If nil is returned it presents the error to the user in a document-modal panel before messaging the delegate. Otherwise it invokes [thePrintOperation setShowsPrintPanel:showPrintPanel] then [self runModalPrintOperation:thePrintOperation delegate:delegate didRunSelector:didPrintSelector contextInfo:contextInfo].
For backward binary compatibility with Mac OS 10.3 and earlier, the default implementation of this method invokes [self printShowingPrintPanel:showPrintPanel] if -printShowingPrintPanel: is overridden. When doing this it uses private functionality to arrange for 1) the print settings to take effect despite the fact that the override of -printShowingPrintPanel: can't possibly know about them, and 2) getting notified when the print operation has been completed, so it can message the delegate at the correct time. Correct messaging of the delegate is necessary for correct handling of the Print Apple event.
Original signature : -(void)printDocumentWithSettings:(NSDictionary*) showPrintPanel:(BOOL) delegate:(id) didPrintSelector:(SEL) contextInfo:(void*)


printOperationWithSettings_error

public abstract NSPrintOperation printOperationWithSettings_error(NSDictionary printSettings,
                                                                  PointerByReference outError)
Create a print operation that can be run to print the document's current contents, and return it if successful. If not successful, return nil after setting *outError to an NSError that encapsulates the reason why the print operation could not be created. The NSPrintInfo attributes in the passed-in printSettings dictionary should be added to a copy of the document's print info, and the resulting print info should be used for the operation. The default implementation of this method does nothing. You must override it to enable printing in your application.
Original signature : -(NSPrintOperation*)printOperationWithSettings:(NSDictionary*) error:(NSError**)


runModalPrintOperation_delegate_didRunSelector_contextInfo

public abstract void runModalPrintOperation_delegate_didRunSelector_contextInfo(NSPrintOperation printOperation,
                                                                                org.rococoa.ID delegate,
                                                                                org.rococoa.Selector didRunSelector,
                                                                                Pointer contextInfo)
Run a print operation, possibly with printing UI presented document-modally. When printing is completed, regardless of success or failure, or has been cancelled, send the message selected by didRunSelector to the delegate, with the contextInfo as the last argument. The method selected by didRunSelector must have the same signature as:
- (void)document:(NSDocument *)document didRunPrintOperation:(BOOL)didPrintSuccessfully contextInfo:(void *)contextInfo;
Original signature : -(void)runModalPrintOperation:(NSPrintOperation*) delegate:(id) didRunSelector:(SEL) contextInfo:(void*)


isDocumentEdited

public abstract boolean isDocumentEdited()
Return YES if the document has changes that have not been saved, NO otherwise, primarily determined by the history of previous invocations of -updateChangeCount:. The default implementation of this method returns NO immediately after invocation of -updateChangeCount:NSChangeCleared. It will then return YES if subsequent invocations of -updateChangeCount: have recorded a situation in which the document has changes that have not been saved. Also, it will always return YES after invocation of -updateChangeCount:NSChangeReadOtherContents, until the next invocation of -updateChangeCount:NSChangeCleared. (-updateChangeCount:NSChangeAutosaved has no effect on what the default implementation of this method returns.) Lastly, because NSDocument implements Cooa Bindings' NSEditorRegistration informal protocol, the default implementation will return YES whenever there are registered key-value binding editors.
Original signature : -(BOOL)isDocumentEdited


updateChangeCount

public abstract void updateChangeCount(int change)
Record the fact that a change affecting the value returned by -isDocumentEdited has occurred. See the comments for NSDocumentChangeType for examples of when this method is invoked by NSDocument's own method implementations. Your application only needs to invoke this method explicitly if it is not taking advantage of NSDocument's built-in undo support. The default implementation of this method also sends all of the document's window controllers -setDocumentEdited: messages when appropriate.
Original signature : -(void)updateChangeCount:(NSDocumentChangeType)

Parameters:
change - @see org.rococoa.cocoa.appkit.AppKitLibrary#NSDocumentChangeType

setUndoManager

public abstract void setUndoManager(NSUndoManager undoManager)
The document's undo manager. The default implementation of -setUndoManager:, in addition to recording the undo manager, registers the document as an observer of various NSUndoManager notifications so that -updateChangeCount: is invoked as undoable changes are made to the document. The default implementation of -undoManager creates an undo manager if the document does not already have one and -hasUndoManager would return YES.
Original signature : -(void)setUndoManager:(NSUndoManager*)


undoManager

public abstract NSUndoManager undoManager()

setHasUndoManager

public abstract void setHasUndoManager(boolean hasUndoManager)
Whether or not the document has an undo manager. The default implementation of -setHasUndoManager: releases the document's current undo manager if it has one before the invocation but is not to have one afterward.
Original signature : -(void)setHasUndoManager:(BOOL)


hasUndoManager

public abstract boolean hasUndoManager()

presentError_modalForWindow_delegate_didPresentSelector_contextInfo

public abstract void presentError_modalForWindow_delegate_didPresentSelector_contextInfo(NSError error,
                                                                                         NSWindow window,
                                                                                         org.rococoa.ID delegate,
                                                                                         org.rococoa.Selector didPresentSelector,
                                                                                         Pointer contextInfo)
Methods that are declared by NSResponder and also implemented by NSDocument, even though for historical reasons NSDocument is not a subclass of NSResponder. NSDocument's default implementations are equivalent to NSResponder's while treating the shared NSDocumentController as the "next responder" and forwarding error presentation messages to it, despite the fact that for historical reasons NSDocumentController is not a subclass of NSResponder either.
NSWindowController has overrides of -presentError:modalForWindow:delegate:didPresentSelector:contextInfo: and -presentError: that treat the window controller's document as the "next responder" and forward these messages to it, if the window controller has a document (some do, some don't).
The default implementations of several NSDocument methods invoke -presentError:modalForWindow:delegate:didPresentSelector:contextInfo:.
You can customize the presentation of errors on a per-NSDocument-subclass basis by overriding -willPresentError:. Your override should follow the advice given for overriding of -[NSResponder willPresentError:].
Original signature : -(void)presentError:(NSError*) modalForWindow:(NSWindow*) delegate:(id) didPresentSelector:(SEL) contextInfo:(void*)


presentError

public abstract boolean presentError(NSError error)

willPresentError

public abstract NSError willPresentError(NSError error)

makeWindowControllers

public abstract void makeWindowControllers()
Create the user interface for this document, but don't show it yet. The default implementation of this method invokes [self windowNibName], creates a new window controller using the resulting nib name (if it is not nil), specifying this document as the nib file's owner, and then invokes [self addWindowController:theNewWindowController] to attach it. You can override this method to use a custom subclass of NSWindowController or to create more than one window controller right away. NSDocumentController invokes this method when creating or opening new documents.
Original signature : -(void)makeWindowControllers


windowNibName

public abstract NSString windowNibName()
Return the name of the nib to be used by -makeWindowControllers. The default implementation returns nil. You can override this method to return the name of a nib in your application's resources; the class of the file's owner in that nib must match the class of this object, and the window outlet of the file's owner should be connected to a window. Virtually every subclass of NSDocument has to override either -makeWindowControllers or -windowNibName.
Original signature : -(NSString*)windowNibName


windowControllerWillLoadNib

public abstract void windowControllerWillLoadNib(NSWindowController windowController)
Be notified that a window controller will or did load a nib with this document as the nib file's owner. The default implementations of these methods do nothing. You can override these methods to do additional setup during the creation of the document's user interface, especially when there's no other reason to create a custom subclass of NSWindowController, so you're not, and you're simply overriding -windowNibName instead of -makeWindowControllers.
Original signature : -(void)windowControllerWillLoadNib:(NSWindowController*)


windowControllerDidLoadNib

public abstract void windowControllerDidLoadNib(NSWindowController windowController)

setWindow

public abstract void setWindow(NSWindow window)
The setter for the "window" IB outlet of this class. It is invoked automatically during the loading of any nib for which this document is the file's owner, if the file's owner window outlet is connected in the nib. You should not invoke this method directly, and typically you would not override it either.
Original signature : -(void)setWindow:(NSWindow*)


addWindowController

public abstract void addWindowController(NSWindowController windowController)
Add or remove a window controller from this document's list of attached window controllers, and set the document of the passed-in window controller. You cannot attach a window controller to more than one document at a time. The default implementation of -addWindowController: removes the passed-in window controller from the document to which it is attached, if it is already attached to one. It also ignores redundant invocations. The default implementations of both of these methods send -setDocument: messages to the passed-in window controller (with a nil argument, in the latter case). You wouldn't typically override either of these methods. You typically invoke -addWindowController: once or more from an override of -makeWindowControllers, if you override -makeWindowControllers, and can invoke it at other times in applications that present multiple windows per document to the user.
Original signature : -(void)addWindowController:(NSWindowController*)


removeWindowController

public abstract void removeWindowController(NSWindowController windowController)

showWindows

public abstract void showWindows()
Present the user interface for this document. The default implementation of this method merely sends -showWindow: messages to each of the attached window controllers. You typically would not invoke or override this method. NSDocumentController invokes this method when creating or opening new documents.
Original signature : -(void)showWindows


windowControllers

public abstract NSArray windowControllers()
Return an array of all window controllers that have been added to this document with -addWindowController: but not yet removed with -removeWindowController:.
Original signature : -(NSArray*)windowControllers


shouldCloseWindowController_delegate_shouldCloseSelector_contextInfo

public abstract void shouldCloseWindowController_delegate_shouldCloseSelector_contextInfo(NSWindowController windowController,
                                                                                          org.rococoa.ID delegate,
                                                                                          org.rococoa.Selector shouldCloseSelector,
                                                                                          Pointer contextInfo)
If the window controller is one whose closing results in the document being closed too, or there is only one window controller attached to the document, do the exact same thing that -canCloseDocumentWithDelegate:shouldCloseSelector:contextInfo: would do. Otherwise send the message selected by shouldCloseSelector to the delegate, with the contextInfo as the last argument, specifying that the window controller should be closed. The method selected by shouldCloseSelector must have the same signature as:
- (void)document:(NSDocument *)document shouldClose:(BOOL)shouldClose contextInfo:(void *)contextInfo;
The default implementation of this method sends the window controller a -shouldCloseDocument message and, if the result is YES or the current count of window controllers is one, merely invokes [self canCloseDocumentWithDelegate:delegate shouldCloseSelector:shouldCloseSelector contextInfo:contextInfo]. Otherwise it messages the delegate as described above. You can override this method, but typically you would not invoke it. NSWindow invokes this method for any window that has a window controller and a document associated with it, before sending the window delegate any -windowShouldClose: message.
Original signature : -(void)shouldCloseWindowController:(NSWindowController*) delegate:(id) shouldCloseSelector:(SEL) contextInfo:(void*)


displayName

public abstract NSString displayName()
Returns a name for this document that is fit for presentation to the user. The default implementation of this returns the name of the last file associated with this document, taking into account whether or not the file name's extension should be hidden, or an appropriate "Untitled" string if the document has never been associated with a file. You can override this method, but overriding -[NSWindowController windowTitleForDocumentDisplayName:] is usually better, because a document's display name is used in error alerts, alerts presented during document saving, the alert that's presented when the user attempts to save a document that has unsaved changes, and save panels (as the default value of the "Save As:" field). In those places the document file's actual name really is what should be used.
Original signature : -(NSString*)displayName


windowForSheet

public abstract NSWindow windowForSheet()
Of the windows associated with this document, return the one most appropriate to use as the parent window of a document-modal sheet. This method may return nil, in which case the invoker should present an application-modal panel. NSDocument's implementation of this method returns the window of the first window controller, or nil if there are no window controllers or if the first window controller has no window.
Original signature : -(NSWindow*)windowForSheet


readableTypes

public static NSArray readableTypes()
Return the names of the types for which this class can be instantiated for the application to play the Editor or Viewer role. The default implementation of this method returns information derived from the application's Info.plist. You must typically override it in document classes that are dynamically loaded from plugins. NSDocumentController uses this method when presenting an open panel and when trying to figure the NSDocument subclass to instantiate when opening a particular type of document.
Original signature : +(NSArray*)readableTypes


writableTypes

public static NSArray writableTypes()
Return the names of the types which this class can save. Typically this includes types for which the application can play the Editor role, plus types than can be merely exported by the application. The default implementation of this method returns information derived from the application's Info.plist. You must typically override it in document classes that are dynamically loaded from plugins.
Original signature : +(NSArray*)writableTypes


isNativeType

public static boolean isNativeType(NSString type)
Return YES if instances of this class can be instantiated for the application to play the Editor role, NO otherwise. The default implementation of this method returns information derived from the application's Info.plist. You must typically override it in document classes that are dynamically loaded from plugins. NSDocument uses this method when presenting a save panel for an NSSaveOperation or NSSaveAsOperation; in that situation all types returned by -writableTypes are presented in the standard file format popup, except the ones for which -isNativeType returns NO.
Original signature : +(BOOL)isNativeType:(NSString*)


writableTypesForSaveOperation

public abstract NSArray writableTypesForSaveOperation(int saveOperation)
Return the names of the types to which this document can be saved for a kind of save operation. For every kind of save operation except NSSaveToOperation the returned array must only include types for which the the application can play the Editor role. For NSSaveToOperation the returned array may include types for which the application can only play the Viewer role, and other types that the application can merely export. The default implementation of this method returns [[self class] writableTypes] with, except during NSSaveToOperations, types for which +isNativeType returns NO filtered out.
You can override this method to limit the set of writable types when the documently currently contains data that is not representable in all types. For example, you can disallow saving to .rtf files when the document contains an attachment and can only be saved properly to .rtfd files. NSDocument uses this this method during save operations that present save panels, and during scripted save operations that do not. It may be called at additional times in future releases of Mac OS X.
You can invoke this method when creating a custom save panel accessory view to easily present the same set of types that NSDocument would in its standard file format popup menu.
Original signature : -(NSArray*)writableTypesForSaveOperation:(NSSaveOperationType)

Parameters:
saveOperation - @see org.rococoa.cocoa.appkit.AppKitLibrary#NSSaveOperationType

fileNameExtensionForType_saveOperation

public abstract NSString fileNameExtensionForType_saveOperation(NSString typeName,
                                                                int saveOperation)
For a specified type, and a particular kind of save operation, return a file name extension that can be appended to a base file name. The default implementation of this method invokes [[NSWorkspace sharedWorkspace] preferredFilenameExtensionForType:typeName] if the type is a UTI or, for backward binary compatibility with Mac OS 10.4 and earlier, invokes [[NSDocumentController sharedDocumentController] fileExtensionsFromType:typeName] and chooses the first file name extension in the returned array if not.
You can override this method to customize the appending of extensions to file names by NSDocument. In Mac OS 10.5 it's only invoked from two places within Cocoa: 1) -autosaveDocumentWithDelegate:didAutosaveSelector:contextInfo: uses this method when creating a new file name for the autosaved contents. 2) -[NSDocument(NSScripting) handleSaveScriptCommand:] uses this method when adding an extension to the file name specified by a script. In all other cases the name of any file being saved will have been fully specified by the user, with the save panel (whether they know it or not).
Original signature : -(NSString*)fileNameExtensionForType:(NSString*) saveOperation:(NSSaveOperationType)

Parameters:
saveOperation - @see org.rococoa.cocoa.appkit.AppKitLibrary#NSSaveOperationType

validateUserInterfaceItem

@Deprecated
public abstract boolean validateUserInterfaceItem(org.rococoa.ID anItem)
Deprecated. use the safer method validateUserInterfaceItem(org.rococoa.cocoa.appkit.protocols.NSValidatedUserInterfaceItem) instead

Conformance to the NSUserInterfaceValidations protocol. NSDocument's implementation of this method conditionally enables menu items for all of the action methods listed in this header file.
Original signature : -(BOOL)validateUserInterfaceItem:(id)

Specified by:
validateUserInterfaceItem in interface NSUserInterfaceValidations

validateUserInterfaceItem

public abstract boolean validateUserInterfaceItem(NSValidatedUserInterfaceItem anItem)
Conformance to the NSUserInterfaceValidations protocol. NSDocument's implementation of this method conditionally enables menu items for all of the action methods listed in this header file.
Original signature : -(BOOL)validateUserInterfaceItem:(id)

Specified by:
validateUserInterfaceItem in interface NSUserInterfaceValidations

alloc

public static NSDocument alloc()