Foundation.NSFileWrapper: Method Members

The methods of Foundation.NSFileWrapper are listed below. For a list of all members, see the NSFileWrapper Members list.

See Also: Inherited members from Foundation.NSObject

Public Methods

AddFileWrapper(NSFileWrapper) : string
Adds a child NSFileWrapper to this. If this is not a directory file wrapper, throws an exception.
AddRegularFile(NSData, string) : string
Adds a child regular file to this with the specified dataContents. If this is not a directory file wrapper, throws an exception.
EncodeTo(NSCoder)
Encodes the state of the object on the provided encoder
GetRegularFileContents() : NSData
Retrieves the contents of this as NSData. If this is not a regular file wrapper, throws an exception.
GetSerializedRepresentation() : NSData
The contents of this as an opaque collection of data.
KeyForFileWrapper(NSFileWrapper) : string
The dictionary key used by this directory file wrapper to identify the specified child. Returns null if the child is not present. If this is not a directory file wrapper, throws an exception.
MatchesContentsOfURL(NSUrl) : bool
Whether this is the same (based on file modification dates, not contents) as the specified url.
Read(NSUrl, NSFileWrapperReadingOptions, out NSError) : bool
Recursively reads the the entire contents of this. Returns true if successful.
RemoveFileWrapper(NSFileWrapper)
Removes the specified child file wrapper. If this is not a directory file wrapper, throws an exception.
Write(NSUrl, NSFileWrapperWritingOptions, NSUrl, out NSError) : bool
Recursively writes the entire contents of this to the specified URL. Returns true if successful.

Protected Methods

override
Dispose(bool)
Releases the resources used by the NSFileWrapper object.