org.rococoa.cocoa.appkit
Class NSPersistentDocument

java.lang.Object
  extended by org.rococoa.cocoa.foundation.NSObject
      extended by org.rococoa.cocoa.appkit.NSDocument
          extended by org.rococoa.cocoa.appkit.NSPersistentDocument
All Implemented Interfaces:
NSUserInterfaceValidations, NSObject, ObjCObject

public abstract class NSPersistentDocument
extends NSDocument

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 NSPersistentDocument._class_
           
 
Nested classes/interfaces inherited from class org.rococoa.cocoa.appkit.NSDocument
NSDocument.__docFlags
 
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
NSPersistentDocument()
           
 
Method Summary
static NSPersistentDocument alloc()
           
 NSDeprecated as_NSPersistentDocument_NSDeprecated()
           
abstract  boolean configurePersistentStoreCoordinatorForURL_ofType_modelConfiguration_storeOptions_error(NSURL url, NSString fileType, NSString configuration, NSDictionary storeOptions, PointerByReference error)
          Configures the persistent store coordinator with the appropriate stores.
static NSPersistentDocument._class_ getNSClass()
           
abstract  Pointer managedObjectContext()
          Persistent documents always have a managed context (and a persistent store coordinator through that context).
abstract  NSObject managedObjectModel()
          By default the framework will create a merged model of all models found in an application and its frameworks.
static NSPersistentDocument new_()
           
abstract  NSString persistentStoreTypeForFileType(NSString fileType)
          Returns the name identifying the store type to save to for the given fileType.
abstract  boolean readFromURL_ofType_error(NSURL absoluteURL, NSString typeName, PointerByReference error)
          Overridden to load the document's managed objects through the managed object context.
abstract  boolean revertToContentsOfURL_ofType_error(NSURL inAbsoluteURL, NSString inTypeName, PointerByReference outError)
          Overridden to clean up the managedObjectContext and controllers during a revert.
abstract  void setManagedObjectContext(Pointer managedObjectContext)
          Original signature : -(void)setManagedObjectContext:(NSManagedObjectContext*)
native declaration : NSPersistentDocument.h:26
 
Methods inherited from class org.rococoa.cocoa.appkit.NSDocument
addWindowController, as_NSDocument_NSDeprecated, as_NSDocument_NSScripting, autosavedContentsFileURL, autosaveDocumentWithDelegate_didAutosaveSelector_contextInfo, autosavingFileType, canCloseDocumentWithDelegate_shouldCloseSelector_contextInfo, canConcurrentlyReadDocumentsOfType, close, create, createForURL_withContentsOfURL_ofType_error, createWithContentsOfURL_ofType_error, createWithType_error, dataOfType_error, displayName, fileAttributesToWriteToURL_ofType_forSaveOperation_originalContentsURL_error, fileModificationDate, fileNameExtensionForType_saveOperation, fileNameExtensionWasHiddenInLastRunSavePanel, fileType, fileTypeFromLastRunSavePanel, fileURL, fileWrapperOfType_error, hasUnautosavedChanges, hasUndoManager, init, initForURL_withContentsOfURL_ofType_error, initWithContentsOfURL_ofType_error, initWithType_error, isDocumentEdited, isNativeType, keepBackupFile, makeWindowControllers, preparePageLayout, prepareSavePanel, presentError_modalForWindow_delegate_didPresentSelector_contextInfo, presentError, printDocument, printDocumentWithSettings_showPrintPanel_delegate_didPrintSelector_contextInfo, printInfo, printOperationWithSettings_error, readableTypes, readFromData_ofType_error, readFromFileWrapper_ofType_error, removeWindowController, revertDocumentToSaved, runModalPageLayoutWithPrintInfo_delegate_didRunSelector_contextInfo, runModalPrintOperation_delegate_didRunSelector_contextInfo, runModalSavePanelForSaveOperation_delegate_didSaveSelector_contextInfo, runPageLayout, saveDocument, saveDocumentAs, saveDocumentTo, saveDocumentWithDelegate_didSaveSelector_contextInfo, saveToURL_ofType_forSaveOperation_delegate_didSaveSelector_contextInfo, saveToURL_ofType_forSaveOperation_error, setAutosavedContentsFileURL, setFileModificationDate, setFileType, setFileURL, setHasUndoManager, setPrintInfo, setUndoManager, setWindow, shouldChangePrintInfo, shouldCloseWindowController_delegate_shouldCloseSelector_contextInfo, shouldRunSavePanelWithAccessoryView, showWindows, undoManager, updateChangeCount, validateUserInterfaceItem, willPresentError, windowControllerDidLoadNib, windowControllers, windowControllerWillLoadNib, windowForSheet, windowNibName, writableTypes, writableTypesForSaveOperation, writeSafelyToURL_ofType_forSaveOperation_error, writeToURL_ofType_error, writeToURL_ofType_forSaveOperation_originalContentsURL_error
 
Methods inherited from class org.rococoa.cocoa.foundation.NSObject
as_NSObject_NSAccessibility, as_NSObject_NSAccessibilityAdditions, as_NSObject_NSApplicationScriptingDelegation, as_NSObject_NSArchiverCallback, as_NSObject_NSClassDescriptionPrimitives, as_NSObject_NSCoderMethods, as_NSObject_NSColorPanelResponderMethod, as_NSObject_NSComparisonMethods, as_NSObject_NSControlSubclassNotifications, as_NSObject_NSCopyLinkMoveHandler, as_NSObject_NSDelayedPerforming, as_NSObject_NSDeprecatedKeyValueCoding, as_NSObject_NSDeprecatedKeyValueObservingCustomization, as_NSObject_NSDeprecatedMethods, as_NSObject_NSDictionaryControllerKeyValuePair, as_NSObject_NSDistributedObjects, as_NSObject_NSDraggingDestination, as_NSObject_NSDraggingSource, as_NSObject_NSDraggingSourceDeprecated, as_NSObject_NSEditor, as_NSObject_NSEditorRegistration, as_NSObject_NSErrorRecoveryAttempting, as_NSObject_NSFileManagerFileOperationAdditions, as_NSObject_NSFontManagerDelegate, as_NSObject_NSFontManagerResponderMethod, as_NSObject_NSFontPanelValidationAdditions, as_NSObject_NSKeyValueBindingCreation, as_NSObject_NSKeyValueCoding, as_NSObject_NSKeyValueObserverNotification, as_NSObject_NSKeyValueObserverRegistration, as_NSObject_NSKeyValueObserving, as_NSObject_NSKeyValueObservingCustomization, as_NSObject_NSMenuValidation, as_NSObject_NSNibAwaking, as_NSObject_NSPasteboardOwner, as_NSObject_NSPlaceholders, as_NSObject_NSScriptClassDescription, as_NSObject_NSScripting, as_NSObject_NSScriptingComparisonMethods, as_NSObject_NSScriptKeyValueCoding, as_NSObject_NSScriptObjectSpecifiers, as_NSObject_NSThreadPerformAdditions, as_NSObject_NSURLClient, as_NSObject_NSURLConnectionDelegate, as_NSObject_NSURLDownloadDelegate, copy, dealloc, description, doesNotRecognizeSelector, finalize, forwardingTargetForSelector, forwardInvocation, isKindOfClass, isKindOfClass, methodForSelector, methodSignatureForSelector, mutableCopy, release, retain, retainCount
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.rococoa.ObjCObject
id
 
Methods inherited from interface org.rococoa.cocoa.foundation.protocols.NSObject
autorelease, class_, conformsToProtocol, hash, isEqual, isMemberOfClass, isProxy, performSelector_withObject_withObject, performSelector_withObject, performSelector, respondsToSelector, self, superclass, zone
 

Constructor Detail

NSPersistentDocument

public NSPersistentDocument()
Method Detail

as_NSPersistentDocument_NSDeprecated

public NSDeprecated as_NSPersistentDocument_NSDeprecated()

managedObjectContext

public abstract Pointer managedObjectContext()
Persistent documents always have a managed context (and a persistent store coordinator through that context).
Original signature : -(NSManagedObjectContext*)managedObjectContext
native declaration : NSPersistentDocument.h:25


setManagedObjectContext

public abstract void setManagedObjectContext(Pointer managedObjectContext)
Original signature : -(void)setManagedObjectContext:(NSManagedObjectContext*)
native declaration : NSPersistentDocument.h:26


managedObjectModel

public abstract NSObject managedObjectModel()
By default the framework will create a merged model of all models found in an application and its frameworks. Subclasses can return a specific model to use for creating persistent stores.
Original signature : -(id)managedObjectModel
native declaration : NSPersistentDocument.h:28


configurePersistentStoreCoordinatorForURL_ofType_modelConfiguration_storeOptions_error

public abstract boolean configurePersistentStoreCoordinatorForURL_ofType_modelConfiguration_storeOptions_error(NSURL url,
                                                                                                               NSString fileType,
                                                                                                               NSString configuration,
                                                                                                               NSDictionary storeOptions,
                                                                                                               PointerByReference error)
Configures the persistent store coordinator with the appropriate stores. Subclasses can create the store to save to or load from (invoked from within the other NSDocument methods to read/write files), which gives developers the ability to load/save from/to different persistent store types (default type is XML).
Original signature : -(BOOL)configurePersistentStoreCoordinatorForURL:(NSURL*) ofType:(NSString*) modelConfiguration:(NSString*) storeOptions:(NSDictionary*) error:(NSError**)
native declaration : NSPersistentDocument.h:33


persistentStoreTypeForFileType

public abstract NSString persistentStoreTypeForFileType(NSString fileType)
Returns the name identifying the store type to save to for the given fileType. The default implementation of this method returns information derived from the application's Info.plist. If no store type information is in the Info.plist, the default implementation returns NSXMLStoreType. See NSPersistentStoreCoordinator.h for store type information.
Original signature : -(NSString*)persistentStoreTypeForFileType:(NSString*)
native declaration : NSPersistentDocument.h:37


readFromURL_ofType_error

public abstract boolean readFromURL_ofType_error(NSURL absoluteURL,
                                                 NSString typeName,
                                                 PointerByReference error)
Overridden to load the document's managed objects through the managed object context.
Original signature : -(BOOL)readFromURL:(NSURL*) ofType:(NSString*) error:(NSError**)
native declaration : NSPersistentDocument.h:41

Specified by:
readFromURL_ofType_error in class NSDocument

revertToContentsOfURL_ofType_error

public abstract boolean revertToContentsOfURL_ofType_error(NSURL inAbsoluteURL,
                                                           NSString inTypeName,
                                                           PointerByReference outError)
Overridden to clean up the managedObjectContext and controllers during a revert.
Original signature : -(BOOL)revertToContentsOfURL:(NSURL*) ofType:(NSString*) error:(NSError**)
native declaration : NSPersistentDocument.h:43

Specified by:
revertToContentsOfURL_ofType_error in class NSDocument

alloc

public static NSPersistentDocument alloc()

new_

public static NSPersistentDocument new_()

getNSClass

public static NSPersistentDocument._class_ getNSClass()


Copyright © 2009. All Rights Reserved.