MonobjcMonobjc Documented Class Library
RevertToContentsOfURLOfTypeError Method (absoluteURL, typeName, outError)
NamespacesMonobjc.AppKitNSDocumentRevertToContentsOfURLOfTypeError(NSURL, NSString, NSError%)

Discards all unsaved document modifications and replaces the document's contents by reading a file or file package located by a URL of a specified type.

Original signature is '- (BOOL)revertToContentsOfURL:(NSURL *)absoluteURL ofType:(NSString *)typeName error:(NSError **)outError'

Available in Mac OS X v10.4 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual bool RevertToContentsOfURLOfTypeError(
	NSURL absoluteURL,
	NSString typeName,
	out NSError outError
Public Overridable Function RevertToContentsOfURLOfTypeError ( _
	absoluteURL As NSURL, _
	typeName As NSString, _
	<OutAttribute> ByRef outError As NSError _
) As Boolean
virtual bool RevertToContentsOfURLOfTypeError(
	NSURL^ absoluteURL, 
	NSString^ typeName, 
	[OutAttribute] NSError^% outError
absoluteURL (NSURL)
The location from which the document contents are read.
typeName (NSString)
The string that identifies the document type.
outError (NSError%)
On return, If the document could not be reverted, a pointer to an error object that encapsulates the reason it could not be reverted.
Return Value
YES if the document could be reverted; otherwise, NO.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.AppKit (Module: Monobjc.AppKit)