Package apple.uikit
Class UIManagedDocument
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.uikit.UIDocument
-
- apple.uikit.UIManagedDocument
-
- All Implemented Interfaces:
NSFilePresenter,NSProgressReporting,NSObject,UIUserActivityRestoring
public class UIManagedDocument extends UIDocument
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.uikit.UIDocument
UIDocument.Block_autosaveWithCompletionHandler, UIDocument.Block_closeWithCompletionHandler, UIDocument.Block_openWithCompletionHandler, UIDocument.Block_performAsynchronousFileAccessUsingBlock, UIDocument.Block_revertToContentsOfURLCompletionHandler, UIDocument.Block_saveToURLForSaveOperationCompletionHandler
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
Nested classes/interfaces inherited from interface apple.foundation.protocol.NSFilePresenter
NSFilePresenter.Block_accommodatePresentedItemDeletionWithCompletionHandler, NSFilePresenter.Block_accommodatePresentedSubitemDeletionAtURLCompletionHandler, NSFilePresenter.Block_relinquishPresentedItemToReader, NSFilePresenter.Block_relinquishPresentedItemToWriter, NSFilePresenter.Block_savePresentedItemChangesWithCompletionHandler
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedUIManagedDocument(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()java.lang.ObjectadditionalContentForURLError(NSURL absoluteURL, org.moe.natj.general.ptr.Ptr<NSError> error)An optional call out by contentsForType:error: to handle non-Core Data content in the document's file wrapper.static UIManagedDocumentalloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)static NSArray<java.lang.String>classFallbacksForKeyedArchiver()static org.moe.natj.objc.ClassclassForKeyedUnarchiver()booleanconfigurePersistentStoreCoordinatorForURLOfTypeModelConfigurationStoreOptionsError(NSURL storeURL, java.lang.String fileType, java.lang.String configuration, NSDictionary<?,?> storeOptions, org.moe.natj.general.ptr.Ptr<NSError> error)Customize the loading or creation of a persistent store to the coordinator.static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()static longhash_static()UIManagedDocumentinit()UIManagedDocumentinitWithFileURL(NSURL url)The designated initializer.static NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)NSManagedObjectContextmanagedObjectContext()Persistent documents always have a managed object context and a persistent store coordinator through that context.NSManagedObjectModelmanagedObjectModel()Persistent documents always have a managed object model.java.lang.StringmodelConfiguration()Optionally specify a model configuration name to be passed when configuring the persistent storestatic java.lang.Objectnew_objc()static java.lang.StringpersistentStoreName()The name for the persistent store file inside the document's file wrapper.NSDictionary<?,?>persistentStoreOptions()Optionally provide a collection of store options to be passed when configuring the persistent storejava.lang.StringpersistentStoreTypeForFileType(java.lang.String fileType)Returns the Core Data store type string for the given document fileType.booleanreadAdditionalContentFromURLError(NSURL absoluteURL, org.moe.natj.general.ptr.Ptr<NSError> error)An optional call out by readFromURL:error: to handle non-Core Data content in the document's file wrapper.static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)voidsetModelConfiguration(java.lang.String value)Optionally specify a model configuration name to be passed when configuring the persistent storevoidsetPersistentStoreOptions(NSDictionary<?,?> value)Optionally provide a collection of store options to be passed when configuring the persistent storestatic voidsetVersion_static(long aVersion)static org.moe.natj.objc.Classsuperclass_static()static longversion_static()booleanwriteAdditionalContentToURLOriginalContentsURLError(java.lang.Object content, NSURL absoluteURL, NSURL absoluteOriginalContentsURL, org.moe.natj.general.ptr.Ptr<NSError> error)An optional call out by writeContents:andAttributes:safelyToURL:forSaveOperation:error: to handle non-Core Data content in the document's file wrapper.-
Methods inherited from class apple.uikit.UIDocument
accommodatePresentedItemDeletionWithCompletionHandler, accommodatePresentedSubitemDeletionAtURLCompletionHandler, autosaveWithCompletionHandler, changeCountTokenForSaveOperation, closeWithCompletionHandler, contentsForTypeError, disableEditing, documentState, enableEditing, fileAttributesToWriteToURLForSaveOperationError, fileModificationDate, fileNameExtensionForTypeSaveOperation, fileType, fileURL, finishedHandlingErrorRecovered, handleErrorUserInteractionPermitted, hasUnsavedChanges, loadFromContentsOfTypeError, localizedName, observedPresentedItemUbiquityAttributes, openWithCompletionHandler, performAsynchronousFileAccessUsingBlock, presentedItemDidChange, presentedItemDidChangeUbiquityAttributes, presentedItemDidGainVersion, presentedItemDidLoseVersion, presentedItemDidMoveToURL, presentedItemDidResolveConflictVersion, presentedItemOperationQueue, presentedItemURL, presentedSubitemAtURLDidGainVersion, presentedSubitemAtURLDidLoseVersion, presentedSubitemAtURLDidMoveToURL, presentedSubitemAtURLDidResolveConflictVersion, presentedSubitemDidAppearAtURL, presentedSubitemDidChangeAtURL, progress, readFromURLError, relinquishPresentedItemToReader, relinquishPresentedItemToWriter, restoreUserActivityState, revertToContentsOfURLCompletionHandler, savePresentedItemChangesWithCompletionHandler, saveToURLForSaveOperationCompletionHandler, savingFileType, setFileModificationDate, setUndoManager, setUserActivity, undoManager, updateChangeCount, updateChangeCountWithTokenForSaveOperation, updateUserActivityState, userActivity, userInteractionNoLongerPermittedForError, writeContentsAndAttributesSafelyToURLForSaveOperationError, writeContentsToURLForSaveOperationOriginalContentsURLError
-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static UIManagedDocument alloc()
-
allocWithZone
public static java.lang.Object allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
-
debugDescription_static
public static java.lang.String debugDescription_static()
-
description_static
public static java.lang.String description_static()
-
hash_static
public static long hash_static()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
instanceMethodSignatureForSelector
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
-
instancesRespondToSelector
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
-
isSubclassOfClass
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
-
keyPathsForValuesAffectingValueForKey
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
-
new_objc
public static java.lang.Object new_objc()
-
persistentStoreName
public static java.lang.String persistentStoreName()
The name for the persistent store file inside the document's file wrapper. When working with the Core Data APIs, this path component is appended to the document URL provided by the UIDocument APIs. The default name is @"documentpersistentstore.db"
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
setVersion_static
public static void setVersion_static(long aVersion)
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
version_static
public static long version_static()
-
additionalContentForURLError
public java.lang.Object additionalContentForURLError(NSURL absoluteURL, org.moe.natj.general.ptr.Ptr<NSError> error)
An optional call out by contentsForType:error: to handle non-Core Data content in the document's file wrapper. The returned object will be passed to -writeAdditionalContent: It is not necessary to call super.
-
configurePersistentStoreCoordinatorForURLOfTypeModelConfigurationStoreOptionsError
public boolean configurePersistentStoreCoordinatorForURLOfTypeModelConfigurationStoreOptionsError(NSURL storeURL, java.lang.String fileType, java.lang.String configuration, NSDictionary<?,?> storeOptions, org.moe.natj.general.ptr.Ptr<NSError> error)
Customize the loading or creation of a persistent store to the coordinator.
-
init
public UIManagedDocument init()
- Overrides:
initin classUIDocument
-
initWithFileURL
public UIManagedDocument initWithFileURL(NSURL url)
Description copied from class:UIDocumentThe designated initializer. Passing an empty URL will cause this method to throw an NSInvalidArgumentException.- Overrides:
initWithFileURLin classUIDocument
-
managedObjectContext
public NSManagedObjectContext managedObjectContext()
Persistent documents always have a managed object context and a persistent store coordinator through that context. The managed object context is required to be initialized with the concurrency type NSMainQueueConcurrencyType and it must have a parent context initialized with the concurrency type NSPrivateQueueConcurrencyType.
-
managedObjectModel
public NSManagedObjectModel managedObjectModel()
Persistent documents always have a managed object model. The default model is the union of all models in the main bundle.
-
modelConfiguration
public java.lang.String modelConfiguration()
Optionally specify a model configuration name to be passed when configuring the persistent store
-
persistentStoreOptions
public NSDictionary<?,?> persistentStoreOptions()
Optionally provide a collection of store options to be passed when configuring the persistent store
-
persistentStoreTypeForFileType
public java.lang.String persistentStoreTypeForFileType(java.lang.String fileType)
Returns the Core Data store type string for the given document fileType. The default returns NSSQLiteStoreType. See NSPersistentStoreCoordinator.h for store type information.
-
readAdditionalContentFromURLError
public boolean readAdditionalContentFromURLError(NSURL absoluteURL, org.moe.natj.general.ptr.Ptr<NSError> error)
An optional call out by readFromURL:error: to handle non-Core Data content in the document's file wrapper. It is not necessary to call super.
-
setModelConfiguration
public void setModelConfiguration(java.lang.String value)
Optionally specify a model configuration name to be passed when configuring the persistent store
-
setPersistentStoreOptions
public void setPersistentStoreOptions(NSDictionary<?,?> value)
Optionally provide a collection of store options to be passed when configuring the persistent store
-
writeAdditionalContentToURLOriginalContentsURLError
public boolean writeAdditionalContentToURLOriginalContentsURLError(java.lang.Object content, NSURL absoluteURL, NSURL absoluteOriginalContentsURL, org.moe.natj.general.ptr.Ptr<NSError> error)An optional call out by writeContents:andAttributes:safelyToURL:forSaveOperation:error: to handle non-Core Data content in the document's file wrapper. The Core Data content is handled by the primary UIDocument -writeContents:andAttributes:safelyToURL:forSaveOperation:error: method. It is not necessary to call super.
-
-